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

Commit 122f9e6f authored by Steve McKay's avatar Steve McKay Committed by android-build-merger
Browse files

Don\'t read raw root from State, use getCurrentRoot am: c2651178

am: bba8b916

* commit 'bba8b916':
  Don't read raw root from State, use getCurrentRoot
parents 8cfe5466 bba8b916
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import static com.android.documentsui.dirlist.DirectoryFragment.ANIM_LEAVE;
import static com.android.documentsui.dirlist.DirectoryFragment.ANIM_NONE;
import static com.android.documentsui.dirlist.DirectoryFragment.ANIM_SIDE;
import static com.android.internal.util.Preconditions.checkArgument;
import static com.android.internal.util.Preconditions.checkState;

import android.app.Activity;
import android.app.Fragment;
@@ -464,8 +463,7 @@ public abstract class BaseActivity extends Activity
     * Set mode based on explicit user action.
     */
    void setViewMode(@ViewMode int mode) {
        checkState(mState.stack.root != null);
        LocalPreferences.setViewMode(this, mState.stack.root, mode);
        LocalPreferences.setViewMode(this, getCurrentRoot(), mode);
        mState.derivedMode = mode;

        // view icon needs to be updated, but we *could* do it