mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user