Restore individual sources in source filter view

This commit is contained in:
arkon
2020-06-17 22:09:48 -04:00
parent 381ba86e3c
commit f176a5179a
5 changed files with 76 additions and 18 deletions

View File

@@ -47,3 +47,5 @@ interface Source {
}
fun Source.icon(): Drawable? = Injekt.get<ExtensionManager>().getAppIconForSource(this)
fun Source.getPreferenceKey(): String = "source_$id"

View File

@@ -34,7 +34,7 @@ abstract class HttpSource : CatalogueSource {
// * Preferences that a source may need.
// */
// val preferences: SharedPreferences by lazy {
// Injekt.get<Application>().getSharedPreferences("source_$id", Context.MODE_PRIVATE)
// Injekt.get<Application>().getSharedPreferences(source.getPreferenceKey(), Context.MODE_PRIVATE)
// }
/**