Changing the widget loading strategy
Widget is loaded only when the user enters the overview mode and we keep the list updated as long as the user is in the overview mode. Once the user leaves the overview mode, we stop responding to widget updates Bug: 26077457 Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
This commit is contained in:
1 parent
58b53b5dff
commit
1024a80f2c
12 files changed
+262
-255
No files matched your search
@@ -102,6 +102,10 @@ public class LauncherAppWidgetHost extends AppWidgetHost {
|
||||
callback.run();
|
||||
}
|
||||
}
|
||||
|
||||
if (Utilities.ATLEAST_MARSHMALLOW) {
|
||||
mLauncher.notifyWidgetProvidersChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public AppWidgetHostView createView(Context context, int appWidgetId,
|
||||
|
||||
Reference in new issue
Block a user