chore: change default URL
This commit is contained in:
parent
52816c155b
commit
d6f352be29
@ -8,6 +8,6 @@ package ru.risdeveau.geotracker
|
|||||||
import splitties.preferences.Preferences
|
import splitties.preferences.Preferences
|
||||||
|
|
||||||
object SettingsPreferences : Preferences("settings") {
|
object SettingsPreferences : Preferences("settings") {
|
||||||
var username by stringPref("username", "anonimous")
|
var username by stringPref("username", "")
|
||||||
var url by stringPref("url", "https://example.com")
|
var url by stringPref("url", "https://geo.tmp.codrs.ru")
|
||||||
}
|
}
|
@ -89,6 +89,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
launch {
|
launch {
|
||||||
screen = if (
|
screen = if (
|
||||||
health(SettingsPreferences.url)
|
health(SettingsPreferences.url)
|
||||||
|
&& SettingsPreferences.username.isNotBlank()
|
||||||
&& hasPermission(ACCESS_FINE_LOCATION)
|
&& hasPermission(ACCESS_FINE_LOCATION)
|
||||||
&& (
|
&& (
|
||||||
(Build.VERSION.SDK_INT < 33)
|
(Build.VERSION.SDK_INT < 33)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user