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

Commit 7e6040d9 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski Committed by Android (Google) Code Review
Browse files

Merge "Set the default mode to grid view."

parents 7eae1092 5351e3f4
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -114,11 +114,7 @@ public class DirectoryLoader extends AsyncTaskLoader<DirectoryResult> {
        if (userMode != State.MODE_UNKNOWN) {
            result.mode = userMode;
        } else {
            if ((mDoc.flags & Document.FLAG_DIR_PREFERS_GRID) != 0) {
            result.mode = State.MODE_GRID;
            } else {
                result.mode = State.MODE_LIST;
            }
        }

        if (mUserSortOrder != State.SORT_ORDER_UNKNOWN) {
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ public class State implements android.os.Parcelable {
    /** Explicit user choice */
    public int userMode = MODE_UNKNOWN;
    /** Derived after loader */
    public int derivedMode = MODE_LIST;
    public int derivedMode = MODE_GRID;

    /** Explicit user choice */
    public int userSortOrder = SORT_ORDER_UNKNOWN;