mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 16:07:57 -06:00
fix: Update type adapter for ThemeMode
This commit is contained in:
@@ -12,9 +12,9 @@ class ThemeModeAdapter extends TypeAdapter<ThemeMode> {
|
||||
case 0:
|
||||
return ThemeMode.system;
|
||||
case 1:
|
||||
return ThemeMode.dark;
|
||||
case 2:
|
||||
return ThemeMode.light;
|
||||
case 2:
|
||||
return ThemeMode.dark;
|
||||
default:
|
||||
return ThemeMode.system;
|
||||
}
|
||||
@@ -41,7 +41,5 @@ class ThemeModeAdapter extends TypeAdapter<ThemeMode> {
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is ThemeModeAdapter &&
|
||||
runtimeType == other.runtimeType &&
|
||||
typeId == other.typeId;
|
||||
other is ThemeModeAdapter && runtimeType == other.runtimeType && typeId == other.typeId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user