From 4c461fb174428d0c96d80a634e01578e846eb44b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 8 May 2020 20:50:04 +0530 Subject: Introduce no-auth mode for connections (#768) Fixes #758 Fixes #526 --- .../main/res/drawable/ic_refresh_white_24dp.xml | 9 ----- app/src/main/res/layout/activity_git_clone.xml | 43 ++++++++-------------- app/src/main/res/menu/main_menu_git.xml | 17 ++++----- app/src/main/res/menu/main_menu_no_auth.xml | 20 ++++++++++ app/src/main/res/menu/main_menu_non_git.xml | 9 ++--- app/src/main/res/values/strings.xml | 5 ++- 6 files changed, 50 insertions(+), 53 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_refresh_white_24dp.xml create mode 100644 app/src/main/res/menu/main_menu_no_auth.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/ic_refresh_white_24dp.xml b/app/src/main/res/drawable/ic_refresh_white_24dp.xml deleted file mode 100644 index 7d391467..00000000 --- a/app/src/main/res/drawable/ic_refresh_white_24dp.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml index de9a240e..e5d41059 100644 --- a/app/src/main/res/layout/activity_git_clone.xml +++ b/app/src/main/res/layout/activity_git_clone.xml @@ -156,50 +156,39 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/label_server_path" /> - + app:layout_constraintStart_toStartOf="parent"> - + android:text="@string/connection_mode_ssh_key" /> - + android:text="@string/connection_mode_basic_authentication" /> - + android:text="@string/connection_mode_openkeychain" /> - + + + + xmlns:app="http://schemas.android.com/apk/res-auto"> + android:title="@string/git_sync" /> + + android:title="@string/git_pull" /> + + android:title="@string/git_push" /> + android:title="@string/refresh_list" /> + android:orderInCategory="100" /> diff --git a/app/src/main/res/menu/main_menu_no_auth.xml b/app/src/main/res/menu/main_menu_no_auth.xml new file mode 100644 index 00000000..9036c261 --- /dev/null +++ b/app/src/main/res/menu/main_menu_no_auth.xml @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/app/src/main/res/menu/main_menu_non_git.xml b/app/src/main/res/menu/main_menu_non_git.xml index dc7d20cc..7745b544 100644 --- a/app/src/main/res/menu/main_menu_non_git.xml +++ b/app/src/main/res/menu/main_menu_non_git.xml @@ -1,7 +1,6 @@ + xmlns:app="http://schemas.android.com/apk/res-auto"> + android:title="@string/refresh_list" /> + android:orderInCategory="100" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5d77ad6a..db8491e8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -354,9 +354,10 @@ System default SSH HTTPS - SSH key - Password + SSH key + Password OpenKeychain + None Successfully saved configuration Configuration error: please verify your settings and try again Unable to open the ssh-key -- cgit v1.2.3