Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ef13276 authored by Ben Lin's avatar Ben Lin Committed by android-build-merger
Browse files

DO NOT MERGE Using Activity#setTitle to have TalkBack announce root traversal.

am: ab58b5a3

Change-Id: Id9c2e3ff42a2ec8fe554e5d3d830d2d70d107086
parents 966d2357 ab58b5a3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -387,6 +387,12 @@ public abstract class BaseActivity extends Activity
        }

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

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

    @Override