yayan 1 vuosi sitten
vanhempi
commit
fc31c3cc8d
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      app/src/main/java/io/nexilis/alpha/ui/main/Root.kt

+ 2 - 1
app/src/main/java/io/nexilis/alpha/ui/main/Root.kt

@@ -19,7 +19,8 @@ fun Root(navController: NavHostController = rememberNavController()) {
     val me by viewModel.me.observeAsState()
     val me by viewModel.me.observeAsState()
     var start = Graph.authentication
     var start = Graph.authentication
     me?.let {
     me?.let {
-        if (!it.first_name.startsWith("USR")) {
+        val isAnonymous = it.first_name.startsWith("USR") && it.is_change_profile == "0"
+        if (!isAnonymous) {
             start = Graph.home
             start = Graph.home
         }
         }
     }
     }