diff options
author | Vadim Tryshev <vadimt@google.com> | 2018-05-22 17:07:12 -0700 |
---|---|---|
committer | Vadim Tryshev <vadimt@google.com> | 2018-05-22 17:07:12 -0700 |
commit | 15b82e14a86e17d69f0762cbe5810ecf685e5802 (patch) | |
tree | d06934247ccfce0ef8efa605be10b91a5cd2e8d1 | |
parent | 5454fa1f6e53a7babb8300954786aa11f24fe917 (diff) | |
download | android_packages_apps_Trebuchet-15b82e14a86e17d69f0762cbe5810ecf685e5802.tar.gz android_packages_apps_Trebuchet-15b82e14a86e17d69f0762cbe5810ecf685e5802.tar.bz2 android_packages_apps_Trebuchet-15b82e14a86e17d69f0762cbe5810ecf685e5802.zip |
Removing FLIP_RECENTS
Bug: 72222505
Test: Manual
Change-Id: I9c84aa3418a5551abec26f03e870da598072e82c
-rw-r--r-- | quickstep/src/com/android/quickstep/views/RecentsView.java | 16 | ||||
-rw-r--r-- | quickstep/src/com/android/quickstep/views/RecentsViewContainer.java | 5 |
2 files changed, 4 insertions, 17 deletions
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index ae8ebbe09..829ed6c7a 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -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) { diff --git a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java index 06e2e8903..846c28b56 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java +++ b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java @@ -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); |