summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps/AllAppsContainerView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsContainerView.java')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsContainerView.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index 0e3cba83e..298ede02b 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -170,6 +170,8 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
// This coordinate is relative to its parent
private final Point mIconLastTouchPos = new Point();
+ private boolean mReloadDrawer = false;
+
private View.OnClickListener mSearchClickListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
@@ -229,11 +231,13 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
}
/**
- * Resets the existing apps in the list
+ * Reloads the existing apps in the list
*/
- public void reset() {
+ public void onReloadAppDrawer() {
+ mReloadDrawer = true;
List<AppInfo> apps = mApps.getApps();
updateApps(apps);
+ requestLayout();
}
/**
@@ -429,6 +433,10 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
}
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
+ if (mReloadDrawer) {
+ updateBackgroundAndPaddings(true);
+ mReloadDrawer = false;
+ }
}
/**