mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Removing FLIP_RECENTS
Bug: 72222505 Test: Manual Change-Id: I9c84aa3418a5551abec26f03e870da598072e82c
This commit is contained in:
@@ -110,7 +110,6 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
|
||||
return recentsView.mAdjacentScale;
|
||||
}
|
||||
};
|
||||
public static final boolean FLIP_RECENTS = true;
|
||||
private static final int DISMISS_TASK_DURATION = 300;
|
||||
// The threshold at which we update the SystemUI flags when animating from the task into the app
|
||||
private static final float UPDATE_SYSUI_FLAGS_THRESHOLD = 0.6f;
|
||||
@@ -268,10 +267,7 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
|
||||
mQuickScrubController = new QuickScrubController(mActivity, this);
|
||||
mModel = RecentsModel.getInstance(context);
|
||||
|
||||
mIsRtl = Utilities.isRtl(getResources());
|
||||
if (FLIP_RECENTS) {
|
||||
mIsRtl = !mIsRtl;
|
||||
}
|
||||
mIsRtl = !Utilities.isRtl(getResources());
|
||||
setLayoutDirection(mIsRtl ? View.LAYOUT_DIRECTION_RTL : View.LAYOUT_DIRECTION_LTR);
|
||||
|
||||
mEmptyIcon = context.getDrawable(R.drawable.ic_empty_recents);
|
||||
@@ -1339,18 +1335,14 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
|
||||
|
||||
@Override
|
||||
public void addChildrenForAccessibility(ArrayList<View> outChildren) {
|
||||
if (FLIP_RECENTS) {
|
||||
for (int i = getChildCount() - 1; i >= 0; --i) {
|
||||
outChildren.add(getChildAt(i));
|
||||
}
|
||||
} else {
|
||||
super.addChildrenForAccessibility(outChildren);
|
||||
for (int i = getChildCount() - 1; i >= 0; --i) {
|
||||
outChildren.add(getChildAt(i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isPageOrderFlipped() {
|
||||
return FLIP_RECENTS;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void addTaskAccessibilityActionsExtra(AccessibilityNodeInfo info) {
|
||||
|
||||
@@ -23,7 +23,6 @@ import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.FloatProperty;
|
||||
import android.view.Gravity;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
|
||||
@@ -67,10 +66,6 @@ public class RecentsViewContainer extends InsettableFrameLayout {
|
||||
});
|
||||
|
||||
mRecentsView = findViewById(R.id.overview_panel);
|
||||
final InsettableFrameLayout.LayoutParams params =
|
||||
(InsettableFrameLayout.LayoutParams) mClearAllButton.getLayoutParams();
|
||||
params.gravity = Gravity.TOP | (RecentsView.FLIP_RECENTS ? Gravity.START : Gravity.END);
|
||||
mClearAllButton.setLayoutParams(params);
|
||||
mClearAllButton.forceHasOverlappingRendering(false);
|
||||
|
||||
mRecentsView.setClearAllButton(mClearAllButton);
|
||||
|
||||
Reference in New Issue
Block a user