From a113121fd3c43f1e1d23064e17c540c48fe330cc Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Tue, 9 Oct 2012 14:46:26 +0200 Subject: Stop using mcc for custom workspace cling on sw600dp devices Bug: 7203884 --- res/values-sw600dp/config.xml | 3 +++ res/values/config.xml | 3 +++ res/values/strings.xml | 13 ------------- src/com/android/launcher2/Launcher.java | 2 +- 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/res/values-sw600dp/config.xml b/res/values-sw600dp/config.xml index eab77f9b0..fe8827418 100644 --- a/res/values-sw600dp/config.xml +++ b/res/values-sw600dp/config.xml @@ -5,6 +5,9 @@ 3 true + + true + -1000 diff --git a/res/values/config.xml b/res/values/config.xml index 8717f6a47..2c691a4ce 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -78,6 +78,9 @@ 4 4 + + false + true 5 diff --git a/res/values/strings.xml b/res/values/strings.xml index 0ea12c4ef..19d363c7d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -261,17 +261,4 @@ s --> Folder renamed to %1$s Folder: %1$s - - - - - - - - - - - - - diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 6095a2fdc..700f9211e 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -3753,7 +3753,7 @@ public final class Launcher extends Activity // with a custom workspace cling (usually specified in an overlay) // For now, only do this on tablets if (mSharedPrefs.getInt(LauncherProvider.DEFAULT_WORKSPACE_RESOURCE_ID, 0) != 0 && - LauncherApplication.isScreenLarge()) { + getResources().getBoolean(R.bool.config_useCustomClings)) { // Use a custom cling View cling = findViewById(R.id.workspace_cling); ViewGroup clingParent = (ViewGroup) cling.getParent(); -- cgit v1.2.3