am 3bf0359f: am a113121f: Stop using mcc for custom workspace cling on sw600dp devices

* commit '3bf0359f286cd78ef0c64df75914e399320d884f':
  Stop using mcc for custom workspace cling on sw600dp devices
This commit is contained in:
Michael Jurka
2012-10-09 17:16:54 -07:00
committed by Android Git Automerger
4 changed files with 7 additions and 14 deletions
+3
View File
@@ -5,6 +5,9 @@
<integer name="hotseat_all_apps_index">3</integer>
<bool name="allow_rotation">true</bool>
<!-- Whether or not to use custom clings if a custom workspace layout is passed in -->
<bool name="config_useCustomClings">true</bool>
<!-- DragController -->
<integer name="config_flingToDeleteMinVelocity">-1000</integer>
+3
View File
@@ -78,6 +78,9 @@
<integer name="cell_count_x">4</integer>
<integer name="cell_count_y">4</integer>
<!-- Whether or not to use custom clings if a custom workspace layout is passed in -->
<bool name="config_useCustomClings">false</bool>
<!-- Hotseat -->
<bool name="hotseat_transpose_layout_with_orientation">true</bool>
<integer name="hotseat_cell_count">5</integer>
-13
View File
@@ -261,17 +261,4 @@ s -->
<string name="folder_renamed">Folder renamed to <xliff:g id="name" example="Games">%1$s</xliff:g></string>
<!-- Folder name format -->
<string name="folder_name_format">Folder: <xliff:g id="name" example="Games">%1$s</xliff:g></string>
<!-- Strings used in device overlays -->
<!-- Clings -->
<!-- Dummy string [CHAR_LIMIT=40] -->
<string name="custom_workspace_cling_title_1"></string>
<!-- Dummy string [CHAR_LIMIT=60] -->
<string name="custom_workspace_cling_description_1"></string>
<!-- Dummy string [CHAR_LIMIT=40] -->
<string name="custom_workspace_cling_title_2"></string>
<!-- Dummy string [CHAR_LIMIT=60] -->
<string name="custom_workspace_cling_description_2"></string>
</resources>
+1 -1
View File
@@ -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();