From 92f1aab25da12411aa256c3b763e0cb6182e9320 Mon Sep 17 00:00:00 2001 From: Aditya Wasan Date: Thu, 15 Oct 2020 20:46:39 +0530 Subject: Add option to automatically sync repository on app launch (#1137) * Add option to automatically sync repository on app launch Signed-off-by: Aditya Wasan * Pull repo if user is not authenticated Signed-off-by: Aditya Wasan * Address review comments Signed-off-by: Harsh Shandilya * Hijack incoming intent rather than copying it Signed-off-by: Harsh Shandilya * Initialize password repository before using it Signed-off-by: Aditya Wasan Co-authored-by: Harsh Shandilya --- app/src/main/res/layout/activity_launch.xml | 59 +++++++++++++++++++++++++++++ app/src/main/res/values/strings.xml | 3 ++ app/src/main/res/xml/preference.xml | 6 +++ 3 files changed, 68 insertions(+) create mode 100644 app/src/main/res/layout/activity_launch.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_launch.xml b/app/src/main/res/layout/activity_launch.xml new file mode 100644 index 00000000..df6e4f7b --- /dev/null +++ b/app/src/main/res/layout/activity_launch.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index cc9f1f24..f8be3859 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -407,6 +407,9 @@ Potentially incorrect URL It appears that your URL contains a custom port, but does not specify the ssh:// scheme.\nThis can cause the port to be considered a part of your path. Press OK here to fix the URL. + Sync on launch + Sync passwords when application is launched + Syncing… Proxy hostname diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml index 58a173c5..6631133f 100644 --- a/app/src/main/res/xml/preference.xml +++ b/app/src/main/res/xml/preference.xml @@ -138,6 +138,12 @@ app:key="biometric_auth" app:summary="@string/biometric_auth_summary" app:title="@string/biometric_auth_title" /> +