|
|
@ -6,7 +6,7 @@ import android.content.SharedPreferences |
|
|
object PreferencesManager { |
|
|
object PreferencesManager { |
|
|
private const val PREFS_NAME = "soniox_prefs" |
|
|
private const val PREFS_NAME = "soniox_prefs" |
|
|
private const val KEY_SERVER_HOST = "server_host" |
|
|
private const val KEY_SERVER_HOST = "server_host" |
|
|
const val DEFAULT_SERVER_HOST = "116.16.16.19:8999" |
|
|
|
|
|
|
|
|
const val DEFAULT_SERVER_HOST = "2.180.16.250:8999" |
|
|
|
|
|
|
|
|
private fun getPrefs(context: Context): SharedPreferences { |
|
|
private fun getPrefs(context: Context): SharedPreferences { |
|
|
return context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE) |
|
|
return context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE) |
|
|
|