summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/FocusIndicatorView.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2015-03-18 14:16:05 -0700
committerAdam Cohen <adamcohen@google.com>2015-03-20 11:15:54 -0700
commit091440a9cb9d4f42406631004aa484cbb79214ca (patch)
tree828aaa4033c73fe84a2e7e567c9cc4909c5a014f /src/com/android/launcher3/FocusIndicatorView.java
parentf846b9054c90e73cb824310e75ea904b5a459c01 (diff)
downloadandroid_packages_apps_Trebuchet-091440a9cb9d4f42406631004aa484cbb79214ca.tar.gz
android_packages_apps_Trebuchet-091440a9cb9d4f42406631004aa484cbb79214ca.tar.bz2
android_packages_apps_Trebuchet-091440a9cb9d4f42406631004aa484cbb79214ca.zip
Reducing method count by eliminating synthetic accessors
Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
Diffstat (limited to 'src/com/android/launcher3/FocusIndicatorView.java')
-rw-r--r--src/com/android/launcher3/FocusIndicatorView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/FocusIndicatorView.java b/src/com/android/launcher3/FocusIndicatorView.java
index af3b97634..ab21c90e6 100644
--- a/src/com/android/launcher3/FocusIndicatorView.java
+++ b/src/com/android/launcher3/FocusIndicatorView.java
@@ -24,6 +24,8 @@ import android.util.AttributeSet;
import android.util.Pair;
import android.view.View;
+import com.android.launcher3.util.Thunk;
+
public class FocusIndicatorView extends View implements View.OnFocusChangeListener {
// It can be any number >0. The view is resized using scaleX and scaleY.
@@ -176,7 +178,7 @@ public class FocusIndicatorView extends View implements View.OnFocusChangeListen
}
}
- private static final class ViewAnimState {
+ @Thunk static final class ViewAnimState {
float x, y, scaleX, scaleY;
}
}