summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-10-05 17:16:49 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-10-05 17:16:49 +0000
commit213b916ff08476e24ae2085ebaa24bd01d4e4a40 (patch)
treebee05c4f51493f4a2fc7738a6677b40263d89678 /src/com/android/launcher3/Workspace.java
parentc4cbd7d978471424e535ec37e20e53081b6e8cdb (diff)
parentba47faae6a84231e01af3f5147ddf05a2dabe216 (diff)
downloadandroid_packages_apps_Trebuchet-213b916ff08476e24ae2085ebaa24bd01d4e4a40.tar.gz
android_packages_apps_Trebuchet-213b916ff08476e24ae2085ebaa24bd01d4e4a40.tar.bz2
android_packages_apps_Trebuchet-213b916ff08476e24ae2085ebaa24bd01d4e4a40.zip
Merge "Moving widget reinflation to push model" into ub-launcher3-master
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r--src/com/android/launcher3/Workspace.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index e5f78bcb5..656487436 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -1043,30 +1043,6 @@ public class Workspace extends PagedView
return super.onInterceptTouchEvent(ev);
}
- protected void reinflateWidgetsIfNecessary() {
- final int clCount = getChildCount();
- for (int i = 0; i < clCount; i++) {
- CellLayout cl = (CellLayout) getChildAt(i);
- ShortcutAndWidgetContainer swc = cl.getShortcutsAndWidgets();
- final int itemCount = swc.getChildCount();
- for (int j = 0; j < itemCount; j++) {
- View v = swc.getChildAt(j);
-
- if (v instanceof LauncherAppWidgetHostView
- && v.getTag() instanceof LauncherAppWidgetInfo) {
- LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) v.getTag();
- LauncherAppWidgetHostView lahv = (LauncherAppWidgetHostView) v;
- if (lahv.isReinflateRequired(mLauncher.getOrientation())) {
- // Remove and rebind the current widget (which was inflated in the wrong
- // orientation), but don't delete it from the database
- mLauncher.removeItem(lahv, info, false /* deleteFromDb */);
- mLauncher.bindAppWidget(info);
- }
- }
- }
- }
- }
-
@Override
protected void determineScrollingStart(MotionEvent ev) {
if (!isFinishedSwitchingState()) return;