Merge "Remove default activity title to prevent talkback from..." into mnc-dev

This commit is contained in:
Makoto Onuki
2015-06-24 00:04:41 +00:00
committed by Android (Google) Code Review

View File

@@ -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());