mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Fix pending restore widget touch issue
After http://ag/14980850, we block updateAppWidget until app widget is restored. However, PendingAppWidgetHostView constructor relies on updateAppWidget(null) to trigger set listener in getDefaultView(). We should call super.updateAppWidget(null) in the constructor instead. Test: manual Bug: 14980850 Change-Id: I30af9778a636af2ad822e7abc152b6f0bfdea1bf
This commit is contained in:
@@ -85,7 +85,7 @@ public class PendingAppWidgetHostView extends LauncherAppWidgetHostView
|
||||
setBackgroundResource(R.drawable.pending_widget_bg);
|
||||
setWillNotDraw(false);
|
||||
|
||||
updateAppWidget(null);
|
||||
super.updateAppWidget(null);
|
||||
setOnClickListener(ItemClickHandler.INSTANCE);
|
||||
|
||||
if (info.pendingItemInfo == null) {
|
||||
|
||||
Reference in New Issue
Block a user