mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +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;
|
||||
boolean checked = false;
|
||||
if(pref instanceof FPref) {
|
||||
FModel.getPreferences().getPrefBoolean((FPref) pref);
|
||||
checked = FModel.getPreferences().getPrefBoolean((FPref) pref);
|
||||
} 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user