mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Moving widget reinflation to push model
Instead of checking every widget, a widget which needs reinflation would post a callback on launcher avoiding unnecessary loops in onResume Bug: 67305604 Change-Id: I53e08d6f4795f7b716a9debca5c0c68dd25a7afe
This commit is contained in:
@@ -110,9 +110,7 @@ public class PendingAppWidgetHostView extends LauncherAppWidgetHostView
|
||||
mClickListener = l;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isReinflateRequired(int orientation) {
|
||||
// Re inflate is required any time the widget restore status changes
|
||||
public boolean isReinflateIfNeeded() {
|
||||
return mStartState != mInfo.restoreStatus;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user