summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-11-10 18:35:02 (GMT)
committerAdnan <adnan@cyngn.com>2014-11-19 23:53:59 (GMT)
commit67cbdb15c642198f1c54147b8ec7e38c8c8346ab (patch)
tree45da5da068834c065a8a498ad8bb88250897ede0
parent552ea33f8bffc7a7dd787fbfb32b10ca2dd7cf26 (diff)
downloadandroid_packages_apps_Trebuchet-67cbdb15c642198f1c54147b8ec7e38c8c8346ab.zip
android_packages_apps_Trebuchet-67cbdb15c642198f1c54147b8ec7e38c8c8346ab.tar.gz
android_packages_apps_Trebuchet-67cbdb15c642198f1c54147b8ec7e38c8c8346ab.tar.bz2
When reloading dynamic grid, reload restore page first.
Change-Id: I05c1d1faf61ecd79abf15d4ab84a689b7e0cb2ac
-rw-r--r--src/com/android/launcher3/Launcher.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 34f1cd0..0f80f8c 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -5541,6 +5541,10 @@ public class Launcher extends Activity
}
public void updateDynamicGrid() {
+ updateDynamicGrid(mWorkspace.getRestorePage());
+ }
+
+ public void updateDynamicGrid(int page) {
mSearchDropTargetBar.setupQSB(Launcher.this);
initializeDynamicGrid();
@@ -5548,7 +5552,7 @@ public class Launcher extends Activity
mGrid.layout(Launcher.this);
// Synchronized reload
- mModel.startLoader(true, mWorkspace.getCurrentPage());
+ mModel.startLoader(true, page);
mWorkspace.updateCustomContentVisibility();
}
@@ -5559,7 +5563,7 @@ public class Launcher extends Activity
public boolean updateGridIfNeeded() {
if (mDynamicGridUpdateRequired) {
- updateDynamicGrid();
+ updateDynamicGrid(mWorkspace.getCurrentPage());
mDynamicGridUpdateRequired = false;
return true;
}