diff options
author | 2020-04-15 21:01:01 +0000 | |
---|---|---|
committer | 2020-04-15 21:01:01 +0000 | |
commit | 0888a3ac6467bce0bbd9b292247a1095ac971ad7 (patch) | |
tree | beed4468a51c29d70e2f0cdd7e90ab0dca1b9d21 | |
parent | fa6e14ca295fe7b31971d753d5dab3337abdae23 (diff) | |
parent | 8c8af2a8351f77a0ea38cd650b4c5fcdb2e38457 (diff) |
Merge "Fix app crash when activity title set to null at empty work profile root." into rvc-dev
-rw-r--r-- | src/com/android/documentsui/BaseActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/documentsui/BaseActivity.java b/src/com/android/documentsui/BaseActivity.java index d0ffe593c..0ddf001be 100644 --- a/src/com/android/documentsui/BaseActivity.java +++ b/src/com/android/documentsui/BaseActivity.java @@ -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()); } |