From 26acafbe67565a9cc6aeb7d6c43a1c6d1cb9b73c Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Thu, 5 Sep 2013 21:47:39 +0200 Subject: Fix crash when setting wallpaper Also clean up some unused code Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1 --- src/com/android/launcher3/ShortcutAndWidgetContainer.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/com/android/launcher3/ShortcutAndWidgetContainer.java') diff --git a/src/com/android/launcher3/ShortcutAndWidgetContainer.java b/src/com/android/launcher3/ShortcutAndWidgetContainer.java index 6c3360126..5ce557192 100644 --- a/src/com/android/launcher3/ShortcutAndWidgetContainer.java +++ b/src/com/android/launcher3/ShortcutAndWidgetContainer.java @@ -161,9 +161,6 @@ public class ShortcutAndWidgetContainer extends ViewGroup { @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { - LauncherAppState app = LauncherAppState.getInstance(); - DeviceProfile grid = app.getDynamicGrid().getDeviceProfile(); - int count = getChildCount(); for (int i = 0; i < count; i++) { final View child = getChildAt(i); -- cgit v1.2.3