OSDN Git Service

Simplifying Model data load state management
authorSunny Goyal <sunnygoyal@google.com>
Fri, 17 Feb 2017 19:22:34 +0000 (11:22 -0800)
committerSunny Goyal <sunnygoyal@google.com>
Wed, 22 Feb 2017 23:45:14 +0000 (15:45 -0800)
commitdd96a5e4fd4af1d230c474346e73ff56f5475fa0
treee1459a3e241e3f3b99bf68325330777abae484a5
parent9f0fa84439bb177ed48758b6d15a8e62c80f1bf4
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
src/com/android/launcher3/AppWidgetsRestoredReceiver.java
src/com/android/launcher3/LauncherAppState.java
src/com/android/launcher3/LauncherModel.java
src/com/android/launcher3/LauncherProvider.java
tests/src/com/android/launcher3/ui/LauncherInstrumentationTestCase.java