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

Commit 0377702d authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Set the default mode to grid view.

Bug: 26329660
Change-Id: I2445e39dde02549e1f3ca4461558129918aa4bb7
parent cdbbbe05
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;