Merge "DO NOT MERGE ANYWHERE Revert "Using Activity#setTitle to have TalkBack announce root traversal."" into nyc-mr2-dev

This commit is contained in:
Ben Lin
2016-12-13 19:09:39 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 7 deletions

View File

@@ -387,12 +387,6 @@ public abstract class BaseActivity extends Activity
} }
mNavigator.update(); mNavigator.update();
// Causes talkback to announce the activity's new title
if (mState.stack.isRecents()) {
setTitle(mRoots.getRecentsRoot().title);
} else {
setTitle(mState.stack.getTitle());
}
invalidateOptionsMenu(); invalidateOptionsMenu();
} }

View File

@@ -192,7 +192,7 @@ public class FilesActivity extends BaseActivity {
Intent intent = getIntent(); Intent intent = getIntent();
return (intent != null && intent.hasExtra(Intent.EXTRA_TITLE)) return (intent != null && intent.hasExtra(Intent.EXTRA_TITLE))
? intent.getStringExtra(Intent.EXTRA_TITLE) ? intent.getStringExtra(Intent.EXTRA_TITLE)
: getString(R.string.downloads_label); : getTitle().toString();
} }
@Override @Override