summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-05-16 19:12:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-05-16 19:12:00 +0000
commit0b1174ddbe3c179dd472c1503e036ecf2870cc0c (patch)
tree5714854584fdbe4549468b49b7932ac39c174ad2 /src
parent1241e61a4568bfda63c731fba78286898eaba008 (diff)
parent3f51631b806fb81e2b76a626edcb78f1b46118d1 (diff)
downloadandroid_packages_apps_Trebuchet-0b1174ddbe3c179dd472c1503e036ecf2870cc0c.tar.gz
android_packages_apps_Trebuchet-0b1174ddbe3c179dd472c1503e036ecf2870cc0c.tar.bz2
android_packages_apps_Trebuchet-0b1174ddbe3c179dd472c1503e036ecf2870cc0c.zip
Merge "Adding Clear All to accessibility chevron on Recents" into ub-launcher3-edmonton
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/views/ScrimView.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/com/android/launcher3/views/ScrimView.java b/src/com/android/launcher3/views/ScrimView.java
index 5dcfe4a70..49e96be6e 100644
--- a/src/com/android/launcher3/views/ScrimView.java
+++ b/src/com/android/launcher3/views/ScrimView.java
@@ -38,6 +38,7 @@ import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
+import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
@@ -113,12 +114,17 @@ public class ScrimView extends View implements Insettable, OnChangeListener,
.getDimensionPixelSize(R.dimen.vertical_drag_handle_size);
mDragHandleBounds = new Rect(0, 0, mDragHandleSize, mDragHandleSize);
- mAccessibilityHelper = new AccessibilityHelper();
+ mAccessibilityHelper = createAccessibilityHelper();
ViewCompat.setAccessibilityDelegate(this, mAccessibilityHelper);
mAM = (AccessibilityManager) context.getSystemService(ACCESSIBILITY_SERVICE);
}
+ @NonNull
+ protected AccessibilityHelper createAccessibilityHelper() {
+ return new AccessibilityHelper();
+ }
+
@Override
public void setInsets(Rect insets) {
updateDragHandleBounds();
@@ -190,6 +196,9 @@ public class ScrimView extends View implements Insettable, OnChangeListener,
if (mCurrentFlatColor != 0) {
canvas.drawColor(mCurrentFlatColor);
}
+ if (mDragHandle != null) {
+ mDragHandle.draw(canvas);
+ }
}
@Override
@@ -323,7 +332,7 @@ public class ScrimView extends View implements Insettable, OnChangeListener,
: IMPORTANT_FOR_ACCESSIBILITY_AUTO);
}
- private class AccessibilityHelper extends ExploreByTouchHelper {
+ protected class AccessibilityHelper extends ExploreByTouchHelper {
private static final int DRAG_HANDLE_ID = 1;