Remove DefaultSharedPreferences since we now have @DefaultPreferences which provide a singleton.

Some fun has been moved to injectable classes due to this change. Not compiling, still work to do, but I prefer to split into 2 separate commits.
This commit is contained in:
Benoit Marty 2022-09-16 16:41:00 +02:00 committed by Benoit Marty
parent 5736c8f648
commit b4494ee8ea

View file

@ -85,7 +85,7 @@ class ServerUrlsRepository @Inject constructor(
/**
* Return true if url is the default homeserver url form resources.
*/
fun isDefaultHomeServerUrl(context: Context, url: String) = url == getDefaultHomeServerUrl()
fun isDefaultHomeServerUrl(url: String) = url == getDefaultHomeServerUrl()
/**
* Return default homeserver url from resources.