Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update Android UI (#846)
Leendert de Borst1b07c5de9f67
diff --git a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/MainActivity.kt b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/MainActivity.ktindex 72f4d5a39..6d1013c25 100644--- a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/MainActivity.kt+++ b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/MainActivity.kt@@ -26,24 +26,6 @@ class MainActivity : ReactActivity() {SplashScreenManager.registerOnActivity(this)// @generated end expo-splashscreen- window.setDecorFitsSystemWindows(false)- window.setNavigationBarColor(Color.TRANSPARENT)- window.setStatusBarColor(Color.TRANSPARENT)- window.attributes.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES- window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)- window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION)- window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)-- // Initialize autofill service, this opens the set_autofill_service setting screen- // to instruct user to enable AliasVault as autofill provider.- // TODO: this should be triggerable from React Native instead so we can better control flow- // of when to ask the user to enable native system autofill.- // TODO: enable this again when implementing Android autofill setup just like we- // did for iOS autofill instructions in settings in the app.- /*startActivity(Intent(Settings.ACTION_REQUEST_SET_AUTOFILL_SERVICE).apply {- data = Uri.parse("package:net.aliasvault.app")- })*/-super.onCreate(null)}diff --git a/apps/mobile-app/android/app/src/main/res/values-night/styles.xml b/apps/mobile-app/android/app/src/main/res/values-night/styles.xmlnew file mode 100644index 000000000..2771f48eb--- /dev/null+++ b/apps/mobile-app/android/app/src/main/res/values-night/styles.xml@@ -0,0 +1,19 @@+<resources xmlns:tools="http://schemas.android.com/tools">+ <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">+ <item name="android:textColor">@android:color/white</item>+ <item name="android:editTextStyle">@style/ResetEditText</item>+ <item name="colorPrimary">@color/colorPrimary</item>+ <item name="android:statusBarColor">#202020</item>+ <item name="android:navigationBarColor">#202020</item>+ <item name="android:windowDrawsSystemBarBackgrounds">true</item>+ </style>+ <style name="ResetEditText" parent="@android:style/Widget.EditText">+ <item name="android:padding">0dp</item>+ <item name="android:textColorHint">#9BA1A6</item>+ <item name="android:textColor">@android:color/white</item>+ </style>+ <style name="Theme.App.SplashScreen" parent="Theme.SplashScreen">+ <item name="windowSplashScreenBackground">@color/splashscreen_background</item>+ <item name="postSplashScreenTheme">@style/AppTheme</item>+ </style>+</resources>\ No newline at end of filediff --git a/apps/mobile-app/android/app/src/main/res/values/styles.xml b/apps/mobile-app/android/app/src/main/res/values/styles.xmlindex 3e78648a9..f12d87752 100644--- a/apps/mobile-app/android/app/src/main/res/values/styles.xml+++ b/apps/mobile-app/android/app/src/main/res/values/styles.xml@@ -3,8 +3,8 @@<item name="android:textColor">@android:color/black</item><item name="android:editTextStyle">@style/ResetEditText</item><item name="colorPrimary">@color/colorPrimary</item>- <item name="android:statusBarColor">@android:color/transparent</item>- <item name="android:navigationBarColor">@android:color/transparent</item>+ <item name="android:statusBarColor">#fff</item>+ <item name="android:navigationBarColor">#fff</item><item name="android:windowDrawsSystemBarBackgrounds">true</item></style><style name="ResetEditText" parent="@android:style/Widget.EditText">diff --git a/apps/mobile-app/app/unlock.tsx b/apps/mobile-app/app/unlock.tsxindex 2ce93ff60..db07c25c1 100644--- a/apps/mobile-app/app/unlock.tsx+++ b/apps/mobile-app/app/unlock.tsx@@ -241,6 +241,7 @@ export default function UnlockScreen() : React.ReactNode {flex: 1,justifyContent: 'center',paddingHorizontal: 20,+ paddingBottom: 40,},scrollContent: {flexGrow: 1,