summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ShortcutAndWidgetContainer.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-08-17 12:54:57 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-08-17 12:56:19 -0700
commit42e28092b336bf89bee94c61e2cd327e1d8ec882 (patch)
tree6752a35699e0781b0e3a8233f5171d2c5e6bcf2d /src/com/android/launcher3/ShortcutAndWidgetContainer.java
parente3e05563b755d3f94da6867049c1a81891545c88 (diff)
downloadandroid_packages_apps_Trebuchet-42e28092b336bf89bee94c61e2cd327e1d8ec882.tar.gz
android_packages_apps_Trebuchet-42e28092b336bf89bee94c61e2cd327e1d8ec882.tar.bz2
android_packages_apps_Trebuchet-42e28092b336bf89bee94c61e2cd327e1d8ec882.zip
Removing some eclipse warnings
Change-Id: I160feaee81b262be02446885fae643c0be71b7af
Diffstat (limited to 'src/com/android/launcher3/ShortcutAndWidgetContainer.java')
-rw-r--r--src/com/android/launcher3/ShortcutAndWidgetContainer.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/com/android/launcher3/ShortcutAndWidgetContainer.java b/src/com/android/launcher3/ShortcutAndWidgetContainer.java
index 157b48a39..20c27735e 100644
--- a/src/com/android/launcher3/ShortcutAndWidgetContainer.java
+++ b/src/com/android/launcher3/ShortcutAndWidgetContainer.java
@@ -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) {
@@ -80,24 +75,6 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
}
@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);
}