diff options
| author | Christian Mehlmauer <FireFart@gmail.com> | 2010-05-20 21:02:04 +0200 |
|---|---|---|
| committer | Christian Mehlmauer <FireFart@gmail.com> | 2010-06-12 12:13:18 +0200 |
| commit | 62e92d7a2a3fd2798901ec2e7c452ff0e4067163 (patch) | |
| tree | f2e9f60c4735feb3a6e443a15578de58d0fb54d2 /samples/ApiDemos/src/com/example/android/apis/graphics/ProxyDrawable.java | |
| parent | 4b5c09f29e37c8d07dcba57e4c4da13089a9d63d (diff) | |
Cleaned up Samples by removing unsed imports and variables.
Changed deprecated Config.LOGD to Config.DEBUG
Removed unnecessary whitespaces
Change-Id: I01414dd83eb6f9a41e56762dd7fc00e7f1115039
Diffstat (limited to 'samples/ApiDemos/src/com/example/android/apis/graphics/ProxyDrawable.java')
| -rw-r--r-- | samples/ApiDemos/src/com/example/android/apis/graphics/ProxyDrawable.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/ProxyDrawable.java b/samples/ApiDemos/src/com/example/android/apis/graphics/ProxyDrawable.java index d26413461..635132ebb 100644 --- a/samples/ApiDemos/src/com/example/android/apis/graphics/ProxyDrawable.java +++ b/samples/ApiDemos/src/com/example/android/apis/graphics/ProxyDrawable.java @@ -22,18 +22,18 @@ import android.graphics.PixelFormat; import android.graphics.drawable.Drawable; public class ProxyDrawable extends Drawable { - + private Drawable mProxy; private boolean mMutated; public ProxyDrawable(Drawable target) { mProxy = target; } - + public Drawable getProxy() { return mProxy; } - + public void setProxy(Drawable proxy) { if (proxy != this) { mProxy = proxy; @@ -46,43 +46,43 @@ public class ProxyDrawable extends Drawable { mProxy.draw(canvas); } } - + @Override public int getIntrinsicWidth() { return mProxy != null ? mProxy.getIntrinsicWidth() : -1; } - + @Override public int getIntrinsicHeight() { return mProxy != null ? mProxy.getIntrinsicHeight() : -1; } - + @Override public int getOpacity() { return mProxy != null ? mProxy.getOpacity() : PixelFormat.TRANSPARENT; } - + @Override public void setFilterBitmap(boolean filter) { if (mProxy != null) { mProxy.setFilterBitmap(filter); } } - + @Override public void setDither(boolean dither) { if (mProxy != null) { mProxy.setDither(dither); } } - + @Override public void setColorFilter(ColorFilter colorFilter) { if (mProxy != null) { mProxy.setColorFilter(colorFilter); } } - + @Override public void setAlpha(int alpha) { if (mProxy != null) { @@ -99,4 +99,4 @@ public class ProxyDrawable extends Drawable { return this; } } - + |
