summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2018-04-27 19:20:34 -0700
committerVadim Tryshev <vadimt@google.com>2018-04-27 20:02:38 -0700
commit94ab3eee48c4c95f55550f0a3b1ce5097906a363 (patch)
treea893103b6ee25d3ff712f63249c076131b7fa85d
parentcbebaa19f992bf55c1f4d6d57e3a21c71f5ee013 (diff)
downloadandroid_packages_apps_Trebuchet-94ab3eee48c4c95f55550f0a3b1ce5097906a363.tar.gz
android_packages_apps_Trebuchet-94ab3eee48c4c95f55550f0a3b1ce5097906a363.tar.bz2
android_packages_apps_Trebuchet-94ab3eee48c4c95f55550f0a3b1ce5097906a363.zip
Alpha-optimizing Clear All button.
Similar approach is used for its sister buttons in System UI (like id/dismiss_text which is "FooterViewButton extends AlphaOptimizedButton"). Bug: 72222505 Test: Manual Change-Id: Ibb8157bfbf2bf9cddb501c1e80fb9c7c79bb694b
-rw-r--r--quickstep/src/com/android/quickstep/views/RecentsViewContainer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java
index 7b7dbbaf5..15925b571 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java
@@ -12,7 +12,6 @@ import android.view.MotionEvent;
import android.view.View;
import com.android.launcher3.InsettableFrameLayout;
-import com.android.launcher3.Launcher;
import com.android.launcher3.R;
public class RecentsViewContainer extends InsettableFrameLayout {
@@ -54,6 +53,7 @@ public class RecentsViewContainer extends InsettableFrameLayout {
(InsettableFrameLayout.LayoutParams) mClearAllButton.getLayoutParams();
params.gravity = Gravity.TOP | (RecentsView.FLIP_RECENTS ? Gravity.START : Gravity.END);
mClearAllButton.setLayoutParams(params);
+ mClearAllButton.forceHasOverlappingRendering(false);
mRecentsView.setClearAllButton(mClearAllButton);
}