summaryrefslogtreecommitdiffstats
path: root/ui/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/com')
-rw-r--r--ui/src/com/android/providers/downloads/ui/DownloadItem.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/com/android/providers/downloads/ui/DownloadItem.java b/ui/src/com/android/providers/downloads/ui/DownloadItem.java
index fc78ca49..e24ac4a4 100644
--- a/ui/src/com/android/providers/downloads/ui/DownloadItem.java
+++ b/ui/src/com/android/providers/downloads/ui/DownloadItem.java
@@ -18,6 +18,7 @@ package com.android.providers.downloads.ui;
import android.content.Context;
import android.util.AttributeSet;
+import android.view.accessibility.AccessibilityEvent;
import android.view.MotionEvent;
import android.widget.CheckBox;
import android.widget.Checkable;
@@ -100,6 +101,7 @@ public class DownloadItem extends GridLayout implements Checkable {
case MotionEvent.ACTION_UP:
if (mIsInDownEvent && event.getX() < CHECKMARK_AREA) {
toggle();
+ sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED);
handled = true;
}
mIsInDownEvent = false;
@@ -130,7 +132,7 @@ public class DownloadItem extends GridLayout implements Checkable {
@Override
public void toggle() {
- mCheckBox.performClick();
+ setChecked(!isChecked());
}
public CheckBox getCheckBox() {