summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android/quickstep/views/ClearAllButton.java
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-06-03 07:26:36 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-06-03 07:26:36 +0000
commit73859d052104d841fdb8560e49d8a46c5bff93b1 (patch)
tree58cf13d9da0fde15896d03148bfece106ad78f61 /quickstep/src/com/android/quickstep/views/ClearAllButton.java
parentdf0843e569b93e77355990f7a71fe39746b43493 (diff)
parentbf29023212a107481b6cbf3dbe4fda52c6f50180 (diff)
downloadandroid_packages_apps_Trebuchet-73859d052104d841fdb8560e49d8a46c5bff93b1.tar.gz
android_packages_apps_Trebuchet-73859d052104d841fdb8560e49d8a46c5bff93b1.tar.bz2
android_packages_apps_Trebuchet-73859d052104d841fdb8560e49d8a46c5bff93b1.zip
Snap for 4818534 from bf29023212a107481b6cbf3dbe4fda52c6f50180 to pi-releaselineage-16.0_20181101
Change-Id: I06c92e93af46c5f35d997815ed1392cca2f05c46
Diffstat (limited to 'quickstep/src/com/android/quickstep/views/ClearAllButton.java')
-rw-r--r--quickstep/src/com/android/quickstep/views/ClearAllButton.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/quickstep/src/com/android/quickstep/views/ClearAllButton.java b/quickstep/src/com/android/quickstep/views/ClearAllButton.java
index 25e3dc6c1..0025df136 100644
--- a/quickstep/src/com/android/quickstep/views/ClearAllButton.java
+++ b/quickstep/src/com/android/quickstep/views/ClearAllButton.java
@@ -16,13 +16,11 @@
package com.android.quickstep.views;
-import static android.view.accessibility.AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS;
-
import android.content.Context;
import android.graphics.Rect;
-import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
+import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.Button;
public class ClearAllButton extends Button {
@@ -37,12 +35,9 @@ public class ClearAllButton extends Button {
}
@Override
- public boolean performAccessibilityAction(int action, Bundle arguments) {
- final boolean res = super.performAccessibilityAction(action, arguments);
- if (action == ACTION_ACCESSIBILITY_FOCUS) {
- mRecentsView.revealClearAllButton();
- }
- return res;
+ public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
+ super.onInitializeAccessibilityNodeInfo(info);
+ info.setParent(mRecentsView); // Pretend we are a part of the task carousel.
}
@Override