No more waiting around for resume

Apply model updates as son as they arrive instead of waiting for onResume.
Various workspace items do not use any configuration dependent resources.
For Widgets, we wait until the host starts lietening before inflating the actual view.

Change-Id: Icb2f5e5940c1ce6c27062ccd34eff87e80af5ab1
This commit is contained in:
Sunny Goyal committed 2017-12-19 12:50:17 -08:00
1 parent e15e2a8267
commit 29947f0b53
16 files changed
+202 -323

No files matched your search

+3 -1
View File
@@ -88,8 +88,10 @@ import com.android.launcher3.util.LongArrayMap;
import com.android.launcher3.util.PackageUserKey;
import com.android.launcher3.util.Thunk;
import com.android.launcher3.util.WallpaperOffsetInterpolator;
import com.android.launcher3.widget.LauncherAppWidgetHostView;
import com.android.launcher3.widget.PendingAddShortcutInfo;
import com.android.launcher3.widget.PendingAddWidgetInfo;
import com.android.launcher3.widget.PendingAppWidgetHostView;
import java.util.ArrayList;
import java.util.HashSet;
@@ -3510,7 +3512,7 @@ public class Workspace extends PagedView
return false;
});
for (PendingAppWidgetHostView view : views) {
view.reinflate();
view.reInflate();
}
}