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

Commit bba8b916 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

* commit 'c2651178':
  Don't read raw root from State, use getCurrentRoot
parents 834e1e27 c2651178
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