Fix crash when setting wallpaper

Also clean up some unused code

Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1
This commit is contained in:
Michael Jurka
2013-09-05 21:47:39 +02:00
parent c58497ee61
commit 26acafbe67
10 changed files with 2 additions and 30 deletions

View File

@@ -17,7 +17,6 @@
package com.android.launcher3;
import android.content.Context;
import android.content.res.Resources;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
@@ -60,7 +59,6 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
// setup default cell parameters
LauncherAppState app = LauncherAppState.getInstance();
DeviceProfile grid = app.getDynamicGrid().getDeviceProfile();
Resources resources = context.getResources();
mOriginalCellWidth = mCellWidth = grid.cellWidthPx;
mOriginalCellHeight = mCellHeight = grid.cellHeightPx;
mCellCountX = (int) grid.numColumns;