Loading src/com/android/documentsui/BaseActivity.java +5 −1 Original line number Diff line number Diff line Loading @@ -414,7 +414,6 @@ public abstract class BaseActivity if (DirectoryFragment.get(getSupportFragmentManager()) == null) { refreshCurrentRootAndDirectory(AnimationView.ANIM_NONE); } updateHeaderTitle(); } /** Loading Loading @@ -527,6 +526,11 @@ public abstract class BaseActivity } public void updateHeaderTitle() { if (!mState.stack.isInitialized()) { //stack has not initialized, the header will update after the stack finishes loading return; } final RootInfo root = mState.stack.getRoot(); final String rootTitle = root.title; String result; Loading src/com/android/documentsui/dirlist/DirectoryFragment.java +2 −0 Original line number Diff line number Diff line Loading @@ -1095,6 +1095,8 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On // For orientation changed case, sometimes the docs loading comes after the menu // update. We need to update the menu here to ensure the status is correct. mInjector.menuManager.updateOptionMenu(); mActivity.updateHeaderTitle(); } } } Loading Loading
src/com/android/documentsui/BaseActivity.java +5 −1 Original line number Diff line number Diff line Loading @@ -414,7 +414,6 @@ public abstract class BaseActivity if (DirectoryFragment.get(getSupportFragmentManager()) == null) { refreshCurrentRootAndDirectory(AnimationView.ANIM_NONE); } updateHeaderTitle(); } /** Loading Loading @@ -527,6 +526,11 @@ public abstract class BaseActivity } public void updateHeaderTitle() { if (!mState.stack.isInitialized()) { //stack has not initialized, the header will update after the stack finishes loading return; } final RootInfo root = mState.stack.getRoot(); final String rootTitle = root.title; String result; Loading
src/com/android/documentsui/dirlist/DirectoryFragment.java +2 −0 Original line number Diff line number Diff line Loading @@ -1095,6 +1095,8 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On // For orientation changed case, sometimes the docs loading comes after the menu // update. We need to update the menu here to ensure the status is correct. mInjector.menuManager.updateOptionMenu(); mActivity.updateHeaderTitle(); } } } Loading