mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Show notifications for new blog posts
This also adds a setting allowing people to turn blog post notifications off. Closes #488
This commit is contained in:
@@ -47,14 +47,15 @@ public class NavDrawerActivity extends BriarFragmentActivity implements
|
||||
BaseFragment.BaseFragmentListener, TransportStateListener,
|
||||
OnNavigationItemSelectedListener {
|
||||
|
||||
public final static String PREF_SEEN_WELCOME_MESSAGE = "welcome_message";
|
||||
|
||||
public static final String INTENT_CONTACTS = "intent_contacts";
|
||||
public static final String INTENT_FORUMS = "intent_forums";
|
||||
static final String INTENT_CONTACTS = "intent_contacts";
|
||||
static final String INTENT_FORUMS = "intent_forums";
|
||||
static final String INTENT_BLOGS = "intent_blogs";
|
||||
|
||||
private static final Logger LOG =
|
||||
Logger.getLogger(NavDrawerActivity.class.getName());
|
||||
|
||||
private final static String PREF_SEEN_WELCOME_MESSAGE = "welcome_message";
|
||||
|
||||
private ActionBarDrawerToggle drawerToggle;
|
||||
|
||||
@Inject
|
||||
@@ -80,6 +81,10 @@ public class NavDrawerActivity extends BriarFragmentActivity implements
|
||||
else if (intent.getBooleanExtra(INTENT_CONTACTS, false)) {
|
||||
startFragment(ContactListFragment.newInstance());
|
||||
}
|
||||
else if (intent.getBooleanExtra(INTENT_BLOGS, false)) {
|
||||
startFragment(BlogsFragment.newInstance());
|
||||
}
|
||||
setIntent(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -122,6 +127,9 @@ public class NavDrawerActivity extends BriarFragmentActivity implements
|
||||
navigation.setCheckedItem(R.id.nav_btn_contacts);
|
||||
startFragment(ContactListFragment.newInstance());
|
||||
}
|
||||
if (getIntent() != null) {
|
||||
onNewIntent(getIntent());
|
||||
}
|
||||
}
|
||||
|
||||
private void welcomeMessageCheck() {
|
||||
|
||||
Reference in New Issue
Block a user