simplify the config creation
This commit is contained in:
parent
c524044d11
commit
8e61e46a90
1 changed files with 1 additions and 3 deletions
|
@ -8,9 +8,7 @@ class Config private constructor(context: Context) {
|
|||
private val mPrefs: SharedPreferences
|
||||
|
||||
companion object {
|
||||
fun newInstance(context: Context): Config {
|
||||
return Config(context)
|
||||
}
|
||||
fun newInstance(context: Context) = Config(context)
|
||||
}
|
||||
|
||||
init {
|
||||
|
|
Loading…
Reference in a new issue