summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppWidgetHost.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-10-04 16:50:57 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-10-05 09:58:13 -0700
commitba47faae6a84231e01af3f5147ddf05a2dabe216 (patch)
treeef89277c3c378d01a026fc064e6a9c45a9e20be4 /src/com/android/launcher3/LauncherAppWidgetHost.java
parent0474222c2545f448ceb9dc116240e1ea1bc543b3 (diff)
downloadpackages_apps_Trebuchet-ba47faae6a84231e01af3f5147ddf05a2dabe216.tar.gz
packages_apps_Trebuchet-ba47faae6a84231e01af3f5147ddf05a2dabe216.tar.bz2
packages_apps_Trebuchet-ba47faae6a84231e01af3f5147ddf05a2dabe216.zip
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
Diffstat (limited to 'src/com/android/launcher3/LauncherAppWidgetHost.java')
-rw-r--r--src/com/android/launcher3/LauncherAppWidgetHost.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/launcher3/LauncherAppWidgetHost.java b/src/com/android/launcher3/LauncherAppWidgetHost.java
index 819f23fae..70440fa30 100644
--- a/src/com/android/launcher3/LauncherAppWidgetHost.java
+++ b/src/com/android/launcher3/LauncherAppWidgetHost.java
@@ -122,7 +122,6 @@ public class LauncherAppWidgetHost extends AppWidgetHost {
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(appWidget.initialLayout, lahv);
lahv.setAppWidget(0, appWidget);
- lahv.updateLastInflationOrientation();
return lahv;
} else {
try {