1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-09-28 02:39:35 +02:00

Added missing break

Update title when showing contacts

Update manage-tags and reports title
This commit is contained in:
vanitasvitae 2016-11-07 09:30:41 +01:00
parent 851b223733
commit 572b5f525b
2 changed files with 7 additions and 0 deletions

View file

@ -996,6 +996,7 @@ public class MainActivity extends ThemedActivity
snackbarNoInternet.show();
}
}
break;
case R.id.nav_activities: {
if (WebHelper.isOnline(MainActivity.this)) {

View file

@ -74,8 +74,14 @@ public class UpdateTitleReceiver extends BroadcastReceiver {
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);