Skip to content
Permalink
Browse files
Merge pull request #11651 from JosJuice/android-profile-off-by-one
Android: Fix per-game profile setting off-by-one
  • Loading branch information
delroth committed Mar 14, 2023
2 parents 43a5d50 + 5818685 commit 970ddf0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1196,7 +1196,7 @@ private void addControllerPerGameSettings(ArrayList<SettingsItem> sl, String pro
int controllerNumber)
{
String[] profiles = new ProfileDialogPresenter(mMenuTag).getProfileNames(false);
String profileKey = profileString + "Profile" + controllerNumber;
String profileKey = profileString + "Profile" + (controllerNumber + 1);
sl.add(new StringSingleChoiceSetting(mContext,
new LegacyStringSetting("", "Controls", profileKey, ""),
R.string.input_profile, 0, profiles, profiles, R.string.input_profiles_empty));

0 comments on commit 970ddf0

Please sign in to comment.