Merge pull request #7530 from zackhow/settings-fix
Android: fix custom game control ui
This commit is contained in:
commit
580c26dc1c
|
@ -75,7 +75,7 @@ public class InputBindingSetting extends SettingsItem
|
||||||
preferences =
|
preferences =
|
||||||
PreferenceManager.getDefaultSharedPreferences(DolphinApplication.getAppContext());
|
PreferenceManager.getDefaultSharedPreferences(DolphinApplication.getAppContext());
|
||||||
SharedPreferences.Editor editor = preferences.edit();
|
SharedPreferences.Editor editor = preferences.edit();
|
||||||
editor.putString(getKey(), ui);
|
editor.putString(getKey() + gameId, ui);
|
||||||
editor.apply();
|
editor.apply();
|
||||||
|
|
||||||
if (getSetting() == null)
|
if (getSetting() == null)
|
||||||
|
|
|
@ -42,7 +42,8 @@ public class RumbleBindingViewHolder extends SettingViewHolder
|
||||||
mItem = (RumbleBindingSetting) item;
|
mItem = (RumbleBindingSetting) item;
|
||||||
|
|
||||||
mTextSettingName.setText(item.getNameId());
|
mTextSettingName.setText(item.getNameId());
|
||||||
mTextSettingDescription.setText(sharedPreferences.getString(mItem.getKey(), ""));
|
mTextSettingDescription
|
||||||
|
.setText(sharedPreferences.getString(mItem.getKey() + mItem.getGameId(), ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue