From fb4cc403514e4d98e63f86ed9d5fa2ac442073d0 Mon Sep 17 00:00:00 2001 From: Vikram Aggarwal Date: Mon, 28 Jan 2013 18:05:42 -0800 Subject: [PATCH] Check tablet mode through resources Change-Id: I1f29bce68a5736e00e38b5f0189c025bfbae433c --- src/com/android/email/activity/setup/GeneralPreferences.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/activity/setup/GeneralPreferences.java b/src/com/android/email/activity/setup/GeneralPreferences.java index df0d0d0ec..6869abd6a 100644 --- a/src/com/android/email/activity/setup/GeneralPreferences.java +++ b/src/com/android/email/activity/setup/GeneralPreferences.java @@ -74,7 +74,7 @@ public class GeneralPreferences extends EmailPreferenceFragment implements ps.removePreference(findPreference(PREFERENCE_KEY_TEXT_ZOOM)); // 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)); } }