Онбординг: отдельный экран биометрии, новый UI пароля (Telegram-style), Skip на всех шагах. Биометрия per-account. Навбар плавно анимируется при смене темы. Поиск: аватарки в результатах. Профиль: клавиатура прячется при скролле. Фокус сбрасывается при навигации.

This commit is contained in:
2026-04-08 02:56:53 +05:00
parent 14d7fc6eb1
commit 299c84cb89
11 changed files with 649 additions and 651 deletions

View File

@@ -1037,6 +1037,12 @@ fun MainScreen(
// Anti-spam: do not stack duplicate screens from rapid taps.
if (navStack.lastOrNull() == screen) return
if (screen is Screen.Requests && navStack.any { it is Screen.Requests }) return
// Hide keyboard and clear focus when navigating to any screen
(context as? android.app.Activity)?.currentFocus?.let { focusedView ->
val imm = context.getSystemService(android.content.Context.INPUT_METHOD_SERVICE) as android.view.inputmethod.InputMethodManager
imm.hideSoftInputFromWindow(focusedView.windowToken, 0)
focusedView.clearFocus()
}
navStack = navStack + screen
}
fun isCurrentAccountUser(user: SearchUser): Boolean {
@@ -1768,7 +1774,7 @@ fun MainScreen(
accountPublicKey,
encryptedPassword
)
biometricPrefs.enableBiometric()
biometricPrefs.enableBiometric(accountPublicKey)
onSuccess()
}
},