diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-03-03 16:58:55 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-03-09 20:21:22 -0800 |
commit | 2e1efb480a9b77a97cb623d4f5faf6802a417422 (patch) | |
tree | 8c6c0f0f7d91c7fc7d4d8ca23092f5fa4be720c9 /src/com/android/launcher3/LauncherAppWidgetHost.java | |
parent | 726eb822d38ad422f37b74c4b0fc504a423ab926 (diff) | |
download | android_packages_apps_Trebuchet-2e1efb480a9b77a97cb623d4f5faf6802a417422.tar.gz android_packages_apps_Trebuchet-2e1efb480a9b77a97cb623d4f5faf6802a417422.tar.bz2 android_packages_apps_Trebuchet-2e1efb480a9b77a97cb623d4f5faf6802a417422.zip |
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
Diffstat (limited to 'src/com/android/launcher3/LauncherAppWidgetHost.java')
-rw-r--r-- | src/com/android/launcher3/LauncherAppWidgetHost.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherAppWidgetHost.java b/src/com/android/launcher3/LauncherAppWidgetHost.java index b07ccc362..8c23ff30d 100644 --- a/src/com/android/launcher3/LauncherAppWidgetHost.java +++ b/src/com/android/launcher3/LauncherAppWidgetHost.java @@ -102,6 +102,10 @@ public class LauncherAppWidgetHost extends AppWidgetHost { callback.run(); } } + + if (Utilities.ATLEAST_MARSHMALLOW) { + mLauncher.notifyWidgetProvidersChanged(); + } } public AppWidgetHostView createView(Context context, int appWidgetId, |