mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
simplify the config creation
This commit is contained in:
@ -8,9 +8,7 @@ class Config private constructor(context: Context) {
|
|||||||
private val mPrefs: SharedPreferences
|
private val mPrefs: SharedPreferences
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun newInstance(context: Context): Config {
|
fun newInstance(context: Context) = Config(context)
|
||||||
return Config(context)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
Reference in New Issue
Block a user