We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 492244b commit 01d2599Copy full SHA for 01d2599
platforms/common/src/main/java/dynamic_fps/impl/config/Serialization.java
@@ -241,9 +241,9 @@ private static void upgradeBatteryNotificationConfig(JsonObject root) {
241
return;
242
}
243
244
- JsonPrimitive field = battery.getAsJsonPrimitive("notifications");
+ JsonElement field = battery.get("notifications");
245
246
- if (!field.isBoolean()) {
+ if (!field.isJsonPrimitive() || !field.getAsJsonPrimitive().isBoolean()) {
247
248
249
0 commit comments