mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Removing some eclipse warnings
Change-Id: I160feaee81b262be02446885fae643c0be71b7af
This commit is contained in:
@@ -18,12 +18,9 @@ package com.android.launcher3;
|
||||
|
||||
import android.app.WallpaperManager;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewGroup.LayoutParams;
|
||||
|
||||
public class ShortcutAndWidgetContainer extends ViewGroup {
|
||||
static final String TAG = "CellLayoutChildren";
|
||||
@@ -43,7 +40,6 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
|
||||
private int mHeightGap;
|
||||
|
||||
private int mCountX;
|
||||
private int mCountY;
|
||||
|
||||
private Launcher mLauncher;
|
||||
|
||||
@@ -62,7 +58,6 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
|
||||
mWidthGap = widthGap;
|
||||
mHeightGap = heightGap;
|
||||
mCountX = countX;
|
||||
mCountY = countY;
|
||||
}
|
||||
|
||||
public View getChildAt(int x, int y) {
|
||||
@@ -79,24 +74,6 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void dispatchDraw(Canvas canvas) {
|
||||
@SuppressWarnings("all") // suppress dead code warning
|
||||
final boolean debug = false;
|
||||
if (debug) {
|
||||
// Debug drawing for hit space
|
||||
Paint p = new Paint();
|
||||
p.setColor(0x6600FF00);
|
||||
for (int i = getChildCount() - 1; i >= 0; i--) {
|
||||
final View child = getChildAt(i);
|
||||
final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
|
||||
|
||||
canvas.drawRect(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height, p);
|
||||
}
|
||||
}
|
||||
super.dispatchDraw(canvas);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
int count = getChildCount();
|
||||
@@ -238,7 +215,6 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setChildrenDrawnWithCacheEnabled(boolean enabled) {
|
||||
super.setChildrenDrawnWithCacheEnabled(enabled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user