Merge pull request #7530 from zackhow/settings-fix

Android: fix custom game control ui
This commit is contained in:
Pierre Bourdon 2018-10-29 04:18:54 +01:00 committed by GitHub
commit 580c26dc1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class InputBindingSetting extends SettingsItem
preferences =
PreferenceManager.getDefaultSharedPreferences(DolphinApplication.getAppContext());
SharedPreferences.Editor editor = preferences.edit();
editor.putString(getKey(), ui);
editor.putString(getKey() + gameId, ui);
editor.apply();
if (getSetting() == null)

View File

@ -42,7 +42,8 @@ public class RumbleBindingViewHolder extends SettingViewHolder
mItem = (RumbleBindingSetting) item;
mTextSettingName.setText(item.getNameId());
mTextSettingDescription.setText(sharedPreferences.getString(mItem.getKey(), ""));
mTextSettingDescription
.setText(sharedPreferences.getString(mItem.getKey() + mItem.getGameId(), ""));
}
@Override