File tree Expand file tree Collapse file tree
app/src/main/java/com/hegocre/nextcloudpasswords/ui/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,9 +96,13 @@ fun NCPNavHost(
9696 navController.navigate(" ${NCPScreen .Folders .name} /${folder.id} " )
9797 }
9898
99- val startDestination by PreferencesManager .getInstance(context).getStartScreen()
99+ val userStartDestination by PreferencesManager .getInstance(context).getStartScreen()
100100 .collectAsState(NCPScreen .Passwords .name, context = Dispatchers .IO )
101101
102+ val startDestination = remember(isAutofillRequest, userStartDestination) {
103+ if (isAutofillRequest) NCPScreen .Passwords .name else userStartDestination
104+ }
105+
102106 val filteredPasswordList = remember(passwordsDecryptionState.decryptedList, searchQuery) {
103107 passwordsDecryptionState.decryptedList?.filter {
104108 ! it.hidden && ! it.trashed && it.matches(searchQuery)
You can’t perform that action at this time.
0 commit comments