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

Commit 37408d06 authored by Ben Lin's avatar Ben Lin Committed by Steve McKay
Browse files

Using Activity#setTitle to have TalkBack announce root traversal.

Bug: 32260739
Bug: 28275570
Change-Id: Ib726183e0884451bfcfcc68060c409aae7e766c1
parent a3965885
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -431,6 +431,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
@@ -215,7 +215,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