Add "Reply all" setting to tablets

This controls the notification action on tablets.

Change-Id: I0b8df2ded371820f0dada3f1b11cebad462962ed
This commit is contained in:
Scott Kennedy 2013-04-24 18:15:19 -07:00
parent 156a9bde06
commit c726d4fa6c
3 changed files with 4 additions and 17 deletions

View File

@ -1162,11 +1162,6 @@ as <xliff:g id="filename">%s</xliff:g>.</string>
<!-- General preference: Text zoom. Value is "huge" (+2) [CHAR LIMIT=32] -->
<string name="general_preference_text_zoom_huge">Huge</string>
<!-- Settings screen, Reply to all default setting title [CHAR LIMIT=30] -->
<string msgid="6469564953937885304" name="general_preference_reply_all_label">Reply all</string>
<!-- Settings screen, Reply to all default setting summary [CHAR LIMIT=70] -->
<string msgid="3356918650886350497" name="general_preference_reply_all_summary">Make \"Reply all\" the default for message replies</string>
<!-- Settings screen, title used to clear the setting for the list of
senders to automatically show pictures for [CHAR LIMIT=80] -->
<string name="general_preferences_clear_trusted_senders_title"

View File

@ -60,8 +60,8 @@
android:key="default-reply-all"
android:persistent="false"
android:defaultValue="false"
android:title="@string/general_preference_reply_all_label"
android:summary="@string/general_preference_reply_all_summary" />
android:title="@string/preferences_default_reply_all_title"
android:summary="@string/preferences_default_reply_all_summary" />
<CheckBoxPreference
android:key="conversation-list-swipe"

View File

@ -72,11 +72,6 @@ public class GeneralPreferences extends EmailPreferenceFragment implements
final PreferenceScreen ps = getPreferenceScreen();
// Merely hide app pref for font size until we're sure it's unnecessary (b/5287963)
ps.removePreference(findPreference(PREFERENCE_KEY_TEXT_ZOOM));
// Disabling reply-all on tablets, as this setting is just for phones
if (Utils.useTabletUI(getActivity().getResources())) {
ps.removePreference(findPreference(MailPrefs.PreferenceKeys.DEFAULT_REPLY_ALL));
}
}
@Override
@ -170,11 +165,8 @@ public class GeneralPreferences extends EmailPreferenceFragment implements
final CheckBoxPreference replyAllPreference =
(CheckBoxPreference) findPreference(MailPrefs.PreferenceKeys.DEFAULT_REPLY_ALL);
// This preference is removed on tablets
if (replyAllPreference != null) {
replyAllPreference.setChecked(mMailPrefs.getDefaultReplyAll());
replyAllPreference.setOnPreferenceChangeListener(this);
}
replyAllPreference.setChecked(mMailPrefs.getDefaultReplyAll());
replyAllPreference.setOnPreferenceChangeListener(this);
reloadDynamicSummaries();
}