Merge pull request #11651 from JosJuice/android-profile-off-by-one

Android: Fix per-game profile setting off-by-one
This commit is contained in:
Pierre Bourdon 2023-03-14 02:02:00 +01:00 committed by GitHub
commit 970ddf0ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1196,7 +1196,7 @@ public final class SettingsFragmentPresenter
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));