aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/activity_git_clone.xml
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-05-08 20:50:04 +0530
committerGitHub <noreply@github.com>2020-05-08 20:50:04 +0530
commit4c461fb174428d0c96d80a634e01578e846eb44b (patch)
treec0e7e4c3b603943baaac22334925d9410961486d /app/src/main/res/layout/activity_git_clone.xml
parented3312b3032ede9786d049706e74a60c973b7b72 (diff)
downloadHardenedPass-4c461fb174428d0c96d80a634e01578e846eb44b.tar.gz
HardenedPass-4c461fb174428d0c96d80a634e01578e846eb44b.zip
Introduce no-auth mode for connections (#768)
Fixes #758 Fixes #526
Diffstat (limited to 'app/src/main/res/layout/activity_git_clone.xml')
-rw-r--r--app/src/main/res/layout/activity_git_clone.xml43
1 files changed, 16 insertions, 27 deletions
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" />
- <com.google.android.material.button.MaterialButtonToggleGroup
+ <RadioGroup
android:id="@+id/connection_mode_group"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@id/label_connection_mode"
- app:layout_constraintStart_toStartOf="parent"
- app:selectionRequired="true"
- app:singleSelection="true" >
+ app:layout_constraintStart_toStartOf="parent">
- <com.google.android.material.button.MaterialButton
- style="?attr/materialButtonOutlinedStyle"
+ <RadioButton
android:id="@+id/connection_mode_ssh_key"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/connection_mode_ssh_key"
- android:textColor="?android:attr/textColorPrimary"
- app:rippleColor="@color/ripple_color"
- app:strokeColor="?attr/colorSecondary"
- app:backgroundTint="@color/toggle_button_selector" />
+ android:text="@string/connection_mode_ssh_key" />
- <com.google.android.material.button.MaterialButton
- style="?attr/materialButtonOutlinedStyle"
+ <RadioButton
android:id="@+id/connection_mode_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/connection_mode_basic_authentication"
- android:textColor="?android:attr/textColorPrimary"
- app:rippleColor="@color/ripple_color"
- app:strokeColor="?attr/colorSecondary"
- app:backgroundTint="@color/toggle_button_selector" />
+ android:text="@string/connection_mode_basic_authentication" />
- <com.google.android.material.button.MaterialButton
- style="?attr/materialButtonOutlinedStyle"
+ <RadioButton
android:id="@+id/connection_mode_open_keychain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/connection_mode_openkeychain"
- android:textColor="?android:attr/textColorPrimary"
- app:rippleColor="@color/ripple_color"
- app:strokeColor="?attr/colorSecondary"
- app:backgroundTint="@color/toggle_button_selector" />
+ android:text="@string/connection_mode_openkeychain" />
- </com.google.android.material.button.MaterialButtonToggleGroup>
+ <RadioButton
+ android:id="@+id/connection_mode_none"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/connection_mode_none" />
+
+ </RadioGroup>
<com.google.android.material.button.MaterialButton
style="@style/Widget.MaterialComponents.Button"