Check tablet mode through resources

Change-Id: I1f29bce68a5736e00e38b5f0189c025bfbae433c
This commit is contained in:
Vikram Aggarwal 2013-01-28 18:05:42 -08:00
parent 4b09765a2e
commit fb4cc40351

View File

@ -74,7 +74,7 @@ public class GeneralPreferences extends EmailPreferenceFragment implements
ps.removePreference(findPreference(PREFERENCE_KEY_TEXT_ZOOM)); ps.removePreference(findPreference(PREFERENCE_KEY_TEXT_ZOOM));
// Disabling reply-all on tablets, as this setting is just for phones // Disabling reply-all on tablets, as this setting is just for phones
if (Utils.useTabletUI(getActivity())) { if (Utils.useTabletUI(getActivity().getResources())) {
ps.removePreference(findPreference(PREFERNECE_REPLY_ALL)); ps.removePreference(findPreference(PREFERNECE_REPLY_ALL));
} }
} }