From 572b5f525b2da945526e00ff1e5dc5e8121c587f Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Mon, 7 Nov 2016 09:30:41 +0100 Subject: [PATCH] Added missing break Update title when showing contacts Update manage-tags and reports title --- .../github/dfa/diaspora_android/activity/MainActivity.java | 1 + .../dfa/diaspora_android/receiver/UpdateTitleReceiver.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java b/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java index c47f6b5c..c719bc27 100644 --- a/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java +++ b/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java @@ -996,6 +996,7 @@ public class MainActivity extends ThemedActivity snackbarNoInternet.show(); } } + break; case R.id.nav_activities: { if (WebHelper.isOnline(MainActivity.this)) { diff --git a/app/src/main/java/com/github/dfa/diaspora_android/receiver/UpdateTitleReceiver.java b/app/src/main/java/com/github/dfa/diaspora_android/receiver/UpdateTitleReceiver.java index c04f0ffe..38e1a3a0 100644 --- a/app/src/main/java/com/github/dfa/diaspora_android/receiver/UpdateTitleReceiver.java +++ b/app/src/main/java/com/github/dfa/diaspora_android/receiver/UpdateTitleReceiver.java @@ -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);