diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-02-17 11:22:34 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-02-22 15:45:14 -0800 |
commit | dd96a5e4fd4af1d230c474346e73ff56f5475fa0 (patch) | |
tree | e1459a3e241e3f3b99bf68325330777abae484a5 /tests | |
parent | 9f0fa84439bb177ed48758b6d15a8e62c80f1bf4 (diff) | |
download | android_packages_apps_Trebuchet-dd96a5e4fd4af1d230c474346e73ff56f5475fa0.tar.gz android_packages_apps_Trebuchet-dd96a5e4fd4af1d230c474346e73ff56f5475fa0.tar.bz2 android_packages_apps_Trebuchet-dd96a5e4fd4af1d230c474346e73ff56f5475fa0.zip |
Simplifying Model data load state management
Instead of maintaining 3 different states, each tied to a subset of data,
maintaing a single state that represents all the data. Individual subset
data is invalidated in rare cases and these invalidates are tightly tied
to the UI. This also allows us to add new data to the model, without worring
about classifying the data into a subset.
Bug: 34112546
Change-Id: Id9cb273de35b79e84a2ef8d6556fcf1e72fb4b75
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/launcher3/ui/LauncherInstrumentationTestCase.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/src/com/android/launcher3/ui/LauncherInstrumentationTestCase.java b/tests/src/com/android/launcher3/ui/LauncherInstrumentationTestCase.java index 4bc40c68f..cb9227bd9 100644 --- a/tests/src/com/android/launcher3/ui/LauncherInstrumentationTestCase.java +++ b/tests/src/com/android/launcher3/ui/LauncherInstrumentationTestCase.java @@ -236,8 +236,7 @@ public class LauncherInstrumentationTestCase extends InstrumentationTestCase { @Override public void run() { ManagedProfileHeuristic.markExistingUsersForNoFolderCreation(mTargetContext); - LauncherAppState.getInstance(mTargetContext).getModel() - .resetLoadedState(true, true); + LauncherAppState.getInstance(mTargetContext).getModel().forceReload(); } }); } catch (Throwable t) { |