mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-17 04:10:39 +01:00
simplify the config creation
This commit is contained in:
parent
e44ab98e65
commit
66968bb623
@ -7,9 +7,7 @@ class Config(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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user