Show better titles in menu

This commit is contained in:
Moez Bhatti
2015-09-17 22:54:41 -04:00
parent 43a5d443f1
commit 698ca53a6e
2 changed files with 3 additions and 3 deletions
@@ -93,9 +93,7 @@ public class BlockedConversationHelper {
* Blocked (#). This method will find the number of blocked unread messages to show in that menu item and bind it
*/
public static void bindBlockedMenuItem(final Context context, final SharedPreferences prefs, final MenuItem item, boolean showBlocked) {
Log.d("BlockedConversationHelper", "bindBlockedMenuItem");
if (item == null) {
Log.d("BlockedConversationHelper", "item is null");
return;
}
@@ -120,7 +118,7 @@ public class BlockedConversationHelper {
protected void onPreExecute() {
super.onPreExecute();
mMenuItem.setVisible(mPrefs.getBoolean(SettingsFragment.BLOCKED_ENABLED, false));
mMenuItem.setTitle(mContext.getString(mShowBlocked ? R.string.menu_unblocked_conversations : R.string.menu_blocked_conversations, "..."));
mMenuItem.setTitle(mContext.getString(mShowBlocked ? R.string.menu_messages : R.string.menu_blocked));
}
@Override
+2
View File
@@ -635,6 +635,8 @@
<string name="menu_unmute_conversation">Unmute conversation</string>
<string name="menu_block_conversation">Block conversation</string>
<string name="menu_unblock_conversation">Unblock conversation</string>
<string name="menu_messages">Messages</string>
<string name="menu_blocked">Blocked</string>
<string name="menu_blocked_conversations">Blocked (%s new)</string>
<string name="menu_unblocked_conversations">Messages (%s new)</string>
<string name="menu_notification_settings">Notification settings</string>