summaryrefslogtreecommitdiffstats
path: root/packages/DocumentsUI
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2015-06-23 14:29:25 -0700
committerMakoto Onuki <omakoto@google.com>2015-06-23 16:51:45 -0700
commit9feac1425c02d2da91e500e7c2f6b7d87a4f3d44 (patch)
tree0109fcab903adc0a67f096eb50fd3047d5a76e7a /packages/DocumentsUI
parent323b768d6d06c73209363f559cdd278e06ca7e48 (diff)
downloadframeworks_base-9feac1425c02d2da91e500e7c2f6b7d87a4f3d44.zip
frameworks_base-9feac1425c02d2da91e500e7c2f6b7d87a4f3d44.tar.gz
frameworks_base-9feac1425c02d2da91e500e7c2f6b7d87a4f3d44.tar.bz2
Remove default activity title to prevent talkback from...
reading the wrong title. We get a title from DocumentProvider with an async task, and by the time we get it, it's *usually* too late and talkback end up reading the default title. Bug 20041072 Change-Id: I7686fe4ae4c157ebfc07bd8b895c4cfdf99c057a
Diffstat (limited to 'packages/DocumentsUI')
-rw-r--r--packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java b/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
index fe148da..c541bca 100644
--- a/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
+++ b/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
@@ -186,6 +186,9 @@ public class DocumentsActivity extends BaseActivity {
}
if (!mState.restored) {
+ // In this case, we set the activity title in AsyncTask.onPostExecute(). To prevent
+ // talkback from reading aloud the default title, we clear it here.
+ setTitle("");
if (mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE) {
final Uri rootUri = getIntent().getData();
new RestoreRootTask(rootUri).executeOnExecutor(getCurrentExecutor());