refactor: refactored in-app purchase interface

This commit is contained in:
Jagandeep Brar
2022-06-01 21:36:43 -04:00
parent 11015f3e36
commit 9cb3fabdf1
21 changed files with 317 additions and 286 deletions

View File

@@ -101,7 +101,7 @@ enum RadarrDatabase<T> with LunaTableMixin<T> {
return;
}
if (this == RadarrDatabase.DEFAULT_VIEW_MOVIES) {
final item = LunaListViewOption.GRID_VIEW.fromKey(value.toString());
final item = LunaListViewOption.fromKey(value.toString());
if (item != null) update(item as T);
return;
}

View File

@@ -103,7 +103,7 @@ enum SonarrDatabase<T> with LunaTableMixin<T> {
return;
}
if (this == SonarrDatabase.DEFAULT_VIEW_SERIES) {
final item = LunaListViewOption.GRID_VIEW.fromKey(value.toString());
final item = LunaListViewOption.fromKey(value.toString());
if (item != null) update(item as T);
return;
}