Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix proguard.flags

Current configuration will keep all the classes, which isn't expected.

Also, use -verbose as Contacts is already doing.

Change-Id: I55ad402c84e99f17e4ceab730cb3818e7d8d98ac
  • Loading branch information...
commit 812dbdb13abbe2d8a9951f8683f84fa14b1c99ef 1 parent a84a05e
Daisuke Miyakawa authored
Showing with 11 additions and 5 deletions.
  1. +4 −2 proguard.flags
  2. +7 −3 src/com/android/phone/AnimationUtils.java
View
6 proguard.flags
@@ -1,4 +1,6 @@
# Keep names that are used only by animation framework.
--keep class ** {
- *** *ForAnimator(...);
+-keepclasseswithmembers class com.android.phone.AnimationUtils$CrossFadeDrawable {
+ *** setCrossFadeAlpha(...);
}
+
+-verbose
View
10 src/com/android/phone/AnimationUtils.java
@@ -155,14 +155,18 @@ public static boolean isFadingOut(final View view) {
public CrossFadeDrawable(Drawable[] layers) {
super(layers);
- mAnimator = ObjectAnimator.ofInt(this, "crossFadeAlphaForAnimator", 0xff, 0);
+ mAnimator = ObjectAnimator.ofInt(this, "crossFadeAlpha", 0xff, 0);
}
private int mCrossFadeAlpha;
- /** This will be used from ObjectAnimator. */
+ /**
+ * This will be used from ObjectAnimator.
+ * Note: this method is protected by proguard.flags so that it won't be removed
+ * automatically.
+ */
@SuppressWarnings("unused")
- public void setCrossFadeAlphaForAnimator(int alpha) {
+ public void setCrossFadeAlpha(int alpha) {
mCrossFadeAlpha = alpha;
invalidateSelf();
}
Please sign in to comment.
Something went wrong with that request. Please try again.