Skip to content

Commit

Permalink
Added missing break
Browse files Browse the repository at this point in the history
Update title when showing contacts

Update manage-tags and reports title
  • Loading branch information
vanitasvitae committed Nov 7, 2016
1 parent 851b223 commit 572b5f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ public boolean onNavigationItemSelected(MenuItem item) {
snackbarNoInternet.show();
}
}
break;

case R.id.nav_activities: {
if (WebHelper.isOnline(MainActivity.this)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,14 @@ public void onReceive(Context context, Intent intent) {
setTitle(R.string.nav_mentions);
} else if (subUrl.startsWith(DiasporaUrlHelper.SUBURL_PUBLIC)) {
setTitle(R.string.public_);
} else if (urls.getManageContactsUrl().equals(url)) {
setTitle(R.string.contacts);
} else if (urls.getManageTagsUrl().equals(url)) {
setTitle(R.string.pref_title__manage_tags);
} else if (urls.isAspectUrl(url)) {
setTitle(urls.getAspectNameFromUrl(url, app));
} else if (urls.getReportsUrl().equals(url)) {
setTitle(R.string.nav_reports);
}
} else {
AppLog.spam(this, "onReceive()- Invalid url: " + url);
Expand Down

0 comments on commit 572b5f5

Please sign in to comment.