summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/PieItem.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2013-03-12 10:24:42 -0700
committerMichael Kolb <kolby@google.com>2013-04-01 16:35:44 -0700
commit3bc96b2d1106fc5ebec6fda6aad3bca4d62e81c0 (patch)
tree43c8eae3c556b647bbac3d207e9b63491d1775f4 /src/com/android/camera/ui/PieItem.java
parente5a79a5bd8ca3e25c14e4fe5df7c1ee1b544dc7e (diff)
downloadandroid_packages_apps_Snap-3bc96b2d1106fc5ebec6fda6aad3bca4d62e81c0.tar.gz
android_packages_apps_Snap-3bc96b2d1106fc5ebec6fda6aad3bca4d62e81c0.tar.bz2
android_packages_apps_Snap-3bc96b2d1106fc5ebec6fda6aad3bca4d62e81c0.zip
Pie design update
Change-Id: Ifb0d50938332bdae50e45523850605d0aafed7fb
Diffstat (limited to 'src/com/android/camera/ui/PieItem.java')
-rw-r--r--src/com/android/camera/ui/PieItem.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/PieItem.java b/src/com/android/camera/ui/PieItem.java
index 677e5acc8..bbfa1dc82 100644
--- a/src/com/android/camera/ui/PieItem.java
+++ b/src/com/android/camera/ui/PieItem.java
@@ -57,7 +57,9 @@ public class PieItem {
public PieItem(Drawable drawable, int level) {
mDrawable = drawable;
this.level = level;
- setAlpha(1f);
+ if (drawable != null) {
+ setAlpha(1f);
+ }
mEnabled = true;
setAnimationAngle(getAnimationAngle());
start = -1;
@@ -79,6 +81,10 @@ public class PieItem {
mItems.add(item);
}
+ public void clearItems() {
+ mItems = null;
+ }
+
public void setPath(Path p) {
mPath = p;
}