summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNilesh Agrawal <nileshagrawal@google.com>2013-12-12 16:07:37 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-12-12 16:07:37 -0800
commit5de33657cb16f5ad58fc41d00c4fd2a7ddf59718 (patch)
tree9a8c88922e99594c785ee33c7a9a16b6023ed9b7
parent0dbbe7189080b9406f7e0af9005e5c45cc95c9c4 (diff)
parent306c1cf200d4e334b19e09a5a5a2026d9f6d12b2 (diff)
downloadandroid_packages_apps_Trebuchet-5de33657cb16f5ad58fc41d00c4fd2a7ddf59718.tar.gz
android_packages_apps_Trebuchet-5de33657cb16f5ad58fc41d00c4fd2a7ddf59718.tar.bz2
android_packages_apps_Trebuchet-5de33657cb16f5ad58fc41d00c4fd2a7ddf59718.zip
am 306c1cf2: Show widgets when ALL_APPS is disabled.
* commit '306c1cf200d4e334b19e09a5a5a2026d9f6d12b2': Show widgets when ALL_APPS is disabled.
-rw-r--r--src/com/android/launcher3/Launcher.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 318066b56..9485cea24 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -2908,8 +2908,9 @@ public class Launcher extends Activity
// Shrink workspaces away if going to AppsCustomize from workspace
Animator workspaceAnim =
mWorkspace.getChangeStateAnimation(Workspace.State.SMALL, animated);
- if (!AppsCustomizePagedView.DISABLE_ALL_APPS) {
- // Set the content type for the all apps space
+ if (!AppsCustomizePagedView.DISABLE_ALL_APPS
+ || contentType == AppsCustomizePagedView.ContentType.Widgets) {
+ // Set the content type for the all apps/widgets space
mAppsCustomizeTabHost.setContentTypeImmediate(contentType);
}
@@ -4053,6 +4054,10 @@ public class Launcher extends Activity
}
mIntentsOnWorkspaceFromUpgradePath = null;
}
+ if (mAppsCustomizeContent != null) {
+ mAppsCustomizeContent.onPackagesUpdated(
+ LauncherModel.getSortedWidgetsAndShortcuts(this));
+ }
} else {
if (mAppsCustomizeContent != null) {
mAppsCustomizeContent.setApps(apps);
@@ -4141,8 +4146,7 @@ public class Launcher extends Activity
}
// Update the widgets pane
- if (!AppsCustomizePagedView.DISABLE_ALL_APPS &&
- mAppsCustomizeContent != null) {
+ if (mAppsCustomizeContent != null) {
mAppsCustomizeContent.onPackagesUpdated(widgetsAndShortcuts);
}
}