Skip to content

Commit

Permalink
update BootablesInterop.java and preference name to reflect recent en…
Browse files Browse the repository at this point in the history
…um changes
  • Loading branch information
Zer0xFF committed Oct 25, 2024
1 parent aee660d commit c618861
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ public class BootablesInterop
}

public static final int SORT_RECENT = 0;
public static final int SORT_HOMEBREW = 1;
public static final int SORT_NONE = 2;
public static final int SORT_NONE = 1;
public static final int SORT_HOMEBREW = 2;

public static native void scanBootables(String[] rootDirectories);
public static native void fullScanBootables(String[] rootDirectories);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void Startup()
gameInfo = new GameInfo(MainActivity.this);

SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
sortMethod = sp.getInt("sortMethod", SORT_NONE);
sortMethod = sp.getInt("sortMethod.v2", SORT_NONE);
onNavigationDrawerItemSelected(sortMethod);
sp.registerOnSharedPreferenceChangeListener(this);

Expand Down Expand Up @@ -339,7 +339,7 @@ public void onNavigationDrawerItemSelected(int position)
prepareFileListView(false);

SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
sp.edit().putInt("sortMethod", sortMethod).apply();
sp.edit().putInt("sortMethod.v2", sortMethod).apply();
}

@Override
Expand Down

0 comments on commit c618861

Please sign in to comment.