diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-05-26 16:05:17 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-05-27 18:23:29 -0700 |
commit | da4fe1a6244457f144e0a331cada3ada17157809 (patch) | |
tree | 71a921324999c5c61598d08b1de864c426c8bc8e /src/com/android/launcher3/LauncherProvider.java | |
parent | c54c701a94e213503d0c6d2ff414e91a50c14133 (diff) | |
download | android_packages_apps_Trebuchet-da4fe1a6244457f144e0a331cada3ada17157809.tar.gz android_packages_apps_Trebuchet-da4fe1a6244457f144e0a331cada3ada17157809.tar.bz2 android_packages_apps_Trebuchet-da4fe1a6244457f144e0a331cada3ada17157809.zip |
Moving the QSB to the workspace grid.
The QSB will only be resent on the first screen of the workspace
covering the full width of the first row. If will not be movable.
The first screen of the workspace will not be movable.
The searchDropTargetBar no longer contains the QSB (it can be
renamed in aseparate cl).
Refactoring all QSB related logic by moving it to a custom view
inflated only using xml.
Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
Diffstat (limited to 'src/com/android/launcher3/LauncherProvider.java')
-rw-r--r-- | src/com/android/launcher3/LauncherProvider.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/com/android/launcher3/LauncherProvider.java b/src/com/android/launcher3/LauncherProvider.java index 11d61d02f..49ce06a44 100644 --- a/src/com/android/launcher3/LauncherProvider.java +++ b/src/com/android/launcher3/LauncherProvider.java @@ -611,8 +611,11 @@ public class LauncherProvider extends ContentProvider { // Database was just created, so wipe any previous widgets if (mWidgetHostResetHandler != null) { new AppWidgetHost(mContext, Launcher.APPWIDGET_HOST_ID).deleteHost(); - mWidgetHostResetHandler.sendEmptyMessage( - ChangeListenerWrapper.MSG_APP_WIDGET_HOST_RESET); + mWidgetHostResetHandler.sendMessage(Message.obtain( + mWidgetHostResetHandler, + ChangeListenerWrapper.MSG_APP_WIDGET_HOST_RESET, + mContext + )); } // Set the flag for empty DB @@ -1100,7 +1103,11 @@ public class LauncherProvider extends ContentProvider { mListener.onExtractedColorsChanged(); break; case MSG_APP_WIDGET_HOST_RESET: - mListener.onAppWidgetHostReset(); + Context context = (Context) msg.obj; + if (context != null) { + context.sendBroadcast(new Intent(Launcher.ACTION_APPWIDGET_HOST_RESET) + .setPackage(context.getPackageName())); + } break; } } |