mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Fixed bug where android boolean settings were not properly displaying their checked state (#7440)
This commit is contained in:
@@ -807,9 +807,9 @@ public class SettingsPage extends TabPage<SettingsScreen> {
|
|||||||
w = h;
|
w = h;
|
||||||
boolean checked = false;
|
boolean checked = false;
|
||||||
if(pref instanceof FPref) {
|
if(pref instanceof FPref) {
|
||||||
FModel.getPreferences().getPrefBoolean((FPref) pref);
|
checked = FModel.getPreferences().getPrefBoolean((FPref) pref);
|
||||||
} else if(pref instanceof ForgeNetPreferences.FNetPref) {
|
} else if(pref instanceof ForgeNetPreferences.FNetPref) {
|
||||||
FModel.getNetPreferences().getPrefBoolean((ForgeNetPreferences.FNetPref) pref);
|
checked = FModel.getNetPreferences().getPrefBoolean((ForgeNetPreferences.FNetPref) pref);
|
||||||
}
|
}
|
||||||
FCheckBox.drawCheckBox(g, SettingsScreen.DESC_COLOR, color, checked, x, y, w, h);
|
FCheckBox.drawCheckBox(g, SettingsScreen.DESC_COLOR, color, checked, x, y, w, h);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user