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

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

Using Activity#setTitle to have TalkBack announce root traversal.

am: 37408d06

Change-Id: I339ce2e8b7b20a747e4dc37d6243c4a07e49aedd
parents 1d9b7368 37408d06
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -433,6 +433,12 @@ public abstract class BaseActivity<T extends ActionHandler>
        }

        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
@@ -217,7 +217,7 @@ public class FilesActivity
        Intent intent = getIntent();
        return (intent != null && intent.hasExtra(Intent.EXTRA_TITLE))
                ? intent.getStringExtra(Intent.EXTRA_TITLE)
                : getTitle().toString();
                : getString(R.string.downloads_label);
    }

    @Override