Messaging: Remove unused code
Change-Id: I8093bb3e305ae323f7069bf42f9e83f8c8647cc7
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
|
||||
package com.android.messaging.ui.mediapicker.camerafocus;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Path;
|
||||
import android.graphics.drawable.Drawable;
|
||||
@@ -47,7 +46,6 @@ public class PieItem {
|
||||
private List<PieItem> mItems;
|
||||
private Path mPath;
|
||||
private OnClickListener mOnClickListener;
|
||||
private float mAlpha;
|
||||
|
||||
// Gray out the view when disabled
|
||||
private static final float ENABLED_ALPHA = 1;
|
||||
@@ -87,12 +85,7 @@ public class PieItem {
|
||||
return mPath;
|
||||
}
|
||||
|
||||
public void setChangeAlphaWhenDisabled (boolean enable) {
|
||||
mChangeAlphaWhenDisabled = enable;
|
||||
}
|
||||
|
||||
public void setAlpha(float alpha) {
|
||||
mAlpha = alpha;
|
||||
mDrawable.setAlpha((int) (255 * alpha));
|
||||
}
|
||||
|
||||
@@ -138,11 +131,6 @@ public class PieItem {
|
||||
outer = outside;
|
||||
}
|
||||
|
||||
public void setFixedSlice(float center, float sweep) {
|
||||
mCenter = center;
|
||||
this.sweep = sweep;
|
||||
}
|
||||
|
||||
public float getCenter() {
|
||||
return mCenter;
|
||||
}
|
||||
@@ -192,12 +180,4 @@ public class PieItem {
|
||||
public void draw(Canvas canvas) {
|
||||
mDrawable.draw(canvas);
|
||||
}
|
||||
|
||||
public void setImageResource(Context context, int resId) {
|
||||
Drawable d = context.getResources().getDrawable(resId).mutate();
|
||||
d.setBounds(mDrawable.getBounds());
|
||||
mDrawable = d;
|
||||
setAlpha(mAlpha);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user