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

Commit 341861d4 authored by Zemiao Zhu's avatar Zemiao Zhu Committed by Automerger Merge Worker
Browse files

Merge "Fix app crash when activity title set to null at empty work profile...

Merge "Fix app crash when activity title set to null at empty work profile root." into rvc-dev am: 0888a3ac am: 427cb75b am: 69d77065

Change-Id: I98e6b75c8d3e6f6d35e1667d7d3b3a31a9696602
parents 45dd486f 69d77065
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -619,10 +619,10 @@ public abstract class BaseActivity

        // Causes talkback to announce the activity's new title
        String appName = getString(R.string.files_label);
        if (getTitle().toString().isEmpty()) {
        if (getTitle() == null || getTitle().toString().isEmpty()) {
            // First launch, TalkBack announces app name.
            setTitle(String.format("%s. %s", appName, mState.stack.getTitle()));
        } else {
        } else if (mState.stack.getTitle() != null) {
            setTitle(mState.stack.getTitle());
        }