Skip to content

Commit

Permalink
Cleanup/Fix: Fix list order list to reflect new ordering, use new pre…
Browse files Browse the repository at this point in the history
…f name for sorting (#1421)
  • Loading branch information
Zer0xFF authored Oct 26, 2024
1 parent 32d6e06 commit f7117c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public class BootablesInterop
System.loadLibrary("Play");
}

// changes to SORT_* order should also be reflected in
// NavigationDrawerFragment.onActivityCreated adapter string list
public static final int SORT_RECENT = 0;
public static final int SORT_NONE = 1;
public static final int SORT_HOMEBREW = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void onCreate(Bundle savedInstanceState)
else
{
// Select either the default item (0) or the last selected item.
mCurrentSelectedPosition = sp.getInt("sortMethod", BootablesInterop.SORT_NONE);
mCurrentSelectedPosition = sp.getInt("sortMethod.v2", BootablesInterop.SORT_NONE);
}
}

Expand All @@ -91,8 +91,8 @@ public void onActivityCreated(Bundle savedInstanceState)
android.R.id.text1,
new String[]{
getString(R.string.file_list_recent),
getString(R.string.file_list_homebrew),
getString(R.string.file_list_default),
getString(R.string.file_list_homebrew),
}));
//Thunder07: Using 'post' might seem weird, but thats the only way I found for setting the selection
//highlight on startup, every other way returns null.
Expand Down

0 comments on commit f7117c3

Please sign in to comment.