diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-05-11 17:06:30 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-05-11 17:12:33 +0200 |
commit | 91ca83db65699732780a858a3c8336a29f1c324c (patch) | |
tree | 86b5be640d880608227776435b8c36cd6e8520e1 /src | |
parent | 2b439818785099f07da2f1deafb6f0613d1198ee (diff) | |
download | packages_apps_trebuchet-91ca83db65699732780a858a3c8336a29f1c324c.zip packages_apps_trebuchet-91ca83db65699732780a858a3c8336a29f1c324c.tar.gz packages_apps_trebuchet-91ca83db65699732780a858a3c8336a29f1c324c.tar.bz2 |
Trebuchet: Fix workspaceTabletGrid check
Change-Id: I35f7ff911778077adbef87c9b6e9aa78af717e19
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/preference/Preferences.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/cyanogenmod/trebuchet/preference/Preferences.java b/src/com/cyanogenmod/trebuchet/preference/Preferences.java index 6e4b29b..9b39960 100644 --- a/src/com/cyanogenmod/trebuchet/preference/Preferences.java +++ b/src/com/cyanogenmod/trebuchet/preference/Preferences.java @@ -18,15 +18,12 @@ package com.cyanogenmod.trebuchet.preference; import android.content.Context; import android.content.SharedPreferences; -import android.content.res.Resources; import android.os.Bundle; import android.preference.Preference; import android.preference.PreferenceActivity; import android.preference.PreferenceCategory; import android.preference.PreferenceFragment; -import android.preference.PreferenceScreen; import android.text.TextUtils; -import android.util.Log; import android.view.MenuItem; import android.view.LayoutInflater; import android.view.View; @@ -130,7 +127,7 @@ public class Preferences extends PreferenceActivity PreferenceCategory general = (PreferenceCategory)findPreference("ui_homescreen_general"); boolean workspaceTabletGrid = getResources().getBoolean(R.bool.config_workspaceTabletGrid); - if (general != null && (LauncherApplication.isScreenLarge() || workspaceTabletGrid == false)) { + if (general != null && (LauncherApplication.isScreenLarge() && workspaceTabletGrid == false)) { Preference grid = findPreference("ui_homescreen_grid"); if (grid != null) { general.removePreference(grid); |