mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +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:
@@ -41,6 +41,7 @@ import android.view.animation.DecelerateInterpolator;
|
||||
import android.view.animation.LinearInterpolator;
|
||||
|
||||
import com.android.launcher3.compat.UserHandleCompat;
|
||||
import com.android.launcher3.util.Thunk;
|
||||
|
||||
public class DeleteDropTarget extends ButtonDropTarget {
|
||||
private static int DELETE_ANIMATION_DURATION = 285;
|
||||
@@ -56,7 +57,7 @@ public class DeleteDropTarget extends ButtonDropTarget {
|
||||
private TransitionDrawable mRemoveDrawable;
|
||||
private TransitionDrawable mCurrentDrawable;
|
||||
|
||||
private boolean mWaitingForUninstall = false;
|
||||
@Thunk boolean mWaitingForUninstall = false;
|
||||
|
||||
public DeleteDropTarget(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
@@ -272,7 +273,7 @@ public class DeleteDropTarget extends ButtonDropTarget {
|
||||
return false;
|
||||
}
|
||||
|
||||
private void completeDrop(DragObject d) {
|
||||
@Thunk void completeDrop(DragObject d) {
|
||||
ItemInfo item = (ItemInfo) d.dragInfo;
|
||||
boolean wasWaitingForUninstall = mWaitingForUninstall;
|
||||
mWaitingForUninstall = false;
|
||||
|
||||
Reference in New Issue
Block a user