diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-09-18 10:59:19 +0800 |
---|---|---|
committer | Matt Garnes <matt@cyngn.com> | 2015-01-15 08:07:27 +0000 |
commit | 661e34a1b64e22dfd1ce05c2bf87e86647973666 (patch) | |
tree | 0620a7ecf055ec2834e4d6770175a2eb052183c2 /src | |
parent | 657097fd0f4e28f597f15547ee70e3e8ef90c388 (diff) | |
download | android_packages_apps_Trebuchet-661e34a1b64e22dfd1ce05c2bf87e86647973666.tar.gz android_packages_apps_Trebuchet-661e34a1b64e22dfd1ce05c2bf87e86647973666.tar.bz2 android_packages_apps_Trebuchet-661e34a1b64e22dfd1ce05c2bf87e86647973666.zip |
Trebuchet: Customize features for regional package
- Customize default launcher workspace for India.
- Add Smartfren customize workspace layout.
- micromax_default_workspace.xml and smartfren_default_workspace.xml is
- copied from res/xml/default_workspace.xml
Change-Id: I6598869a6b6f29fbad05b4c470e980141e4cbf61
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/DynamicGrid.java | 4 | ||||
-rw-r--r-- | src/com/android/launcher3/LauncherApplication.java | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/launcher3/DynamicGrid.java b/src/com/android/launcher3/DynamicGrid.java index 1bf9afb56..fe0897c8e 100644 --- a/src/com/android/launcher3/DynamicGrid.java +++ b/src/com/android/launcher3/DynamicGrid.java @@ -67,6 +67,10 @@ public class DynamicGrid { fourByFourDefaultLayout = R.xml.ct_default_workspace_4x4; } else if (LauncherApplication.LAUNCHER_BACKUP_SHORTCUT_ENABLED) { fourByFourDefaultLayout = R.xml.cm_with_backup_default_workspace; + } else if (LauncherApplication.LAUNCHER_MMX_SHORTCUT_ENABLED) { + fourByFourDefaultLayout = R.xml.micromax_default_workspace; + } else if (LauncherApplication.LAUNCHER_SFR_SHORTCUT_ENABLED) { + fourByFourDefaultLayout = R.xml.smartfren_default_workspace; } DEFAULT_ICON_SIZE_PX = pxFromDp(DEFAULT_ICON_SIZE_DP, dm); diff --git a/src/com/android/launcher3/LauncherApplication.java b/src/com/android/launcher3/LauncherApplication.java index 56ca3267f..689f54d1f 100644 --- a/src/com/android/launcher3/LauncherApplication.java +++ b/src/com/android/launcher3/LauncherApplication.java @@ -23,6 +23,8 @@ public class LauncherApplication extends Application { public static boolean LAUNCHER_SHORTCUT_ENABLED; public static boolean SHOW_CTAPP_FEATURE; public static boolean LAUNCHER_BACKUP_SHORTCUT_ENABLED; + public static boolean LAUNCHER_MMX_SHORTCUT_ENABLED; + public static boolean LAUNCHER_SFR_SHORTCUT_ENABLED; @Override public void onCreate() { @@ -34,6 +36,10 @@ public class LauncherApplication extends Application { SHOW_CTAPP_FEATURE = getResources().getBoolean(R.bool.config_launcher_page); LAUNCHER_BACKUP_SHORTCUT_ENABLED = getResources().getBoolean(R.bool.config_launcher_show_backup_shortcut); + LAUNCHER_MMX_SHORTCUT_ENABLED = + getResources().getBoolean(R.bool.config_micromax_enabled); + LAUNCHER_SFR_SHORTCUT_ENABLED = + getResources().getBoolean(R.bool.config_smartfren_enabled); LauncherAppState.setApplicationContext(this); LauncherAppState.getInstance(); } |