summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNilesh Agrawal <nileshagrawal@google.com>2013-12-12 14:56:00 -0800
committerDanesh M <daneshm90@gmail.com>2014-06-06 22:54:22 -0700
commitc0971929e4c9279b461a86f2e5e152d5bf10268d (patch)
treec8357cc44d59e4098a86664903de0cf17d24b1cb /src
parentdb8e6203655330d8e7f67cd008130f713419c691 (diff)
downloadandroid_packages_apps_Trebuchet-c0971929e4c9279b461a86f2e5e152d5bf10268d.tar.gz
android_packages_apps_Trebuchet-c0971929e4c9279b461a86f2e5e152d5bf10268d.tar.bz2
android_packages_apps_Trebuchet-c0971929e4c9279b461a86f2e5e152d5bf10268d.zip
Show widgets when ALL_APPS is disabled.
Change-Id: I367448df69a63ffd3412fe4c99137a21426d285c
Diffstat (limited to 'src')
-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 97ac65f0e..ae977875c 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -3113,8 +3113,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
mAppsCustomizeContent.setContentType(contentType);
}
@@ -4218,6 +4219,10 @@ public class Launcher extends Activity
}
mIntentsOnWorkspaceFromUpgradePath = null;
}
+ if (mAppsCustomizeContent != null) {
+ mAppsCustomizeContent.onPackagesUpdated(
+ LauncherModel.getSortedWidgetsAndShortcuts(this));
+ }
} else {
if (mAppsCustomizeContent != null) {
mAppsCustomizeContent.setApps(apps);
@@ -4306,8 +4311,7 @@ public class Launcher extends Activity
}
// Update the widgets pane
- if (!AppsCustomizePagedView.DISABLE_ALL_APPS &&
- mAppsCustomizeContent != null) {
+ if (mAppsCustomizeContent != null) {
mAppsCustomizeContent.onPackagesUpdated(widgetsAndShortcuts);
}
}