mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Fix crash when setting wallpaper
Also clean up some unused code Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user