Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Tweak reinitialize flow to work better with native unlock views (#1776)
Leendert de Borst917f78129984
diff --git a/apps/mobile-app/android/app/src/main/res/layout/activity_password_unlock.xml b/apps/mobile-app/android/app/src/main/res/layout/activity_password_unlock.xmlindex 4a1a0dff6..c6088dea5 100644--- a/apps/mobile-app/android/app/src/main/res/layout/activity_password_unlock.xml+++ b/apps/mobile-app/android/app/src/main/res/layout/activity_password_unlock.xml@@ -60,7 +60,7 @@android:layout_marginTop="8dp"android:layout_marginStart="32dp"android:layout_marginEnd="32dp"- android:paddingBottom="24dp"+ android:paddingBottom="16dp"tools:text="Enter your master password" /></androidx.constraintlayout.widget.ConstraintLayout>@@ -78,7 +78,7 @@<androidx.constraintlayout.widget.ConstraintLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"- android:paddingTop="32dp"+ android:paddingTop="20dp"android:paddingBottom="32dp"><!-- Password Input -->diff --git a/apps/mobile-app/android/app/src/main/res/layout/activity_pin_unlock.xml b/apps/mobile-app/android/app/src/main/res/layout/activity_pin_unlock.xmlindex 18ae50ea0..2382b42a2 100644--- a/apps/mobile-app/android/app/src/main/res/layout/activity_pin_unlock.xml+++ b/apps/mobile-app/android/app/src/main/res/layout/activity_pin_unlock.xml@@ -60,7 +60,7 @@android:layout_marginTop="8dp"android:layout_marginStart="32dp"android:layout_marginEnd="32dp"- android:paddingBottom="24dp" />+ android:paddingBottom="16dp" /></androidx.constraintlayout.widget.ConstraintLayout><!-- PIN Dots Container (for fixed-length PINs) -->@@ -73,7 +73,7 @@app:layout_constraintTop_toBottomOf="@id/headerSection"app:layout_constraintStart_toStartOf="parent"app:layout_constraintEnd_toEndOf="parent"- android:layout_marginTop="32dp"+ android:layout_marginTop="20dp"android:visibility="visible" /><!-- PIN Text View (for variable-length PINs) -->@@ -90,7 +90,7 @@app:layout_constraintTop_toBottomOf="@id/headerSection"app:layout_constraintStart_toStartOf="parent"app:layout_constraintEnd_toEndOf="parent"- android:layout_marginTop="32dp"+ android:layout_marginTop="20dp"android:visibility="gone" /><!-- Error Message -->diff --git a/apps/mobile-app/app/reinitialize.tsx b/apps/mobile-app/app/reinitialize.tsxindex cd9f12c72..0e8b4eb8f 100644--- a/apps/mobile-app/app/reinitialize.tsx+++ b/apps/mobile-app/app/reinitialize.tsx@@ -70,6 +70,8 @@ export default function ReinitializeScreen() : React.ReactNode {if (hasEncryptedDatabase) {// Attempt automatic unlock using centralized helperupdateStatus(t('app.status.unlockingVault'));+ // Small delay to ensure loading screen is fully rendered before showing native unlock dialog+ await new Promise(resolve => setTimeout(resolve, 150));const unlockResult = await VaultUnlockHelper.attemptAutomaticUnlock({ enabledAuthMethods, unlockVault: dbContext.unlockVault });if (!unlockResult.success) {@@ -80,9 +82,9 @@ export default function ReinitializeScreen() : React.ReactNode {}// Add small delay for UX- await new Promise(resolve => setTimeout(resolve, 300));+ await new Promise(resolve => setTimeout(resolve, 150));updateStatus(t('app.status.decryptingVault'));- await new Promise(resolve => setTimeout(resolve, 500));+ await new Promise(resolve => setTimeout(resolve, 300));// Check if the vault needs migration before syncingif (await dbContext.hasPendingMigrations()) {