Commit 4089bb9f authored by Lucio Maciel's avatar Lucio Maciel

Move consts to a companion object

parent d51280e7
...@@ -21,6 +21,8 @@ class SharedPreferencesSettingsRepository(private val localRespository: LocalRep ...@@ -21,6 +21,8 @@ class SharedPreferencesSettingsRepository(private val localRespository: LocalRep
return null return null
} }
}
const val SETTINGS_KEY = "settings_" companion object {
\ No newline at end of file private const val SETTINGS_KEY = "settings_"
}
}
\ No newline at end of file
...@@ -13,6 +13,7 @@ class SharedPrefsCurrentServerRepository(private val preferences: SharedPreferen ...@@ -13,6 +13,7 @@ class SharedPrefsCurrentServerRepository(private val preferences: SharedPreferen
return preferences.getString(CURRENT_SERVER_KEY, null) return preferences.getString(CURRENT_SERVER_KEY, null)
} }
} companion object {
private const val CURRENT_SERVER_KEY = "current_server"
const val CURRENT_SERVER_KEY = "current_server" }
\ No newline at end of file }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment