summaryrefslogtreecommitdiff
path: root/src/com/android/browser/PieControl.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-03-16 16:06:03 -0700
committerMichael Kolb <kolby@google.com>2011-03-16 16:14:44 -0700
commit565752e1025129ad16c030ceca9dee7a695ed73e (patch)
tree4131b60d56f3783ba7c68db0f8e8dcac7aafbaa4 /src/com/android/browser/PieControl.java
parent1c699aabc351e44869c4e6c4e06e6c1ebcc0613a (diff)
fix quick control rendering
Bug: 4108815 render pie slices again, use faded background Change-Id: I05e5bf2f6809d5775b48f22a67b37e961aa5ab9f
Diffstat (limited to 'src/com/android/browser/PieControl.java')
-rw-r--r--src/com/android/browser/PieControl.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/browser/PieControl.java b/src/com/android/browser/PieControl.java
index ed3e9600..38ed1bbb 100644
--- a/src/com/android/browser/PieControl.java
+++ b/src/com/android/browser/PieControl.java
@@ -26,8 +26,6 @@ import com.android.browser.view.PieStackView.OnCurrentListener;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
-import android.graphics.drawable.BitmapDrawable;
-import android.os.Handler;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
@@ -165,7 +163,6 @@ public class PieControl implements OnClickListener, PieMenu.PieController {
image.setScaleType(ScaleType.CENTER);
LayoutParams lp = new LayoutParams(mItemSize, mItemSize);
v.setLayoutParams(lp);
- v.setBackgroundResource(R.drawable.qc_item_selector);
return v;
}
@@ -175,9 +172,8 @@ public class PieControl implements OnClickListener, PieMenu.PieController {
view.setMinimumWidth(mItemSize);
view.setMinimumHeight(mItemSize);
view.setScaleType(ScaleType.CENTER);
- LayoutParams lp = new LayoutParams(mItemSize,mItemSize);
+ LayoutParams lp = new LayoutParams(mItemSize, mItemSize);
view.setLayoutParams(lp);
- view.setBackgroundResource(R.drawable.qc_item_selector);
return new PieItem(view, l);
}