Skip to content

Commit 103ee03

Browse files
committed
hide proxy settings
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
1 parent 6aad3b1 commit 103ee03

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

app/src/main/java/com/nextcloud/talk/settings/SettingsActivity.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ class SettingsActivity :
182182

183183
setupClientCertView()
184184
showSetupClientCertView(isOnline.value)
185-
186185
}
187186

188187
private fun handleNetworkChange(isOnline: Boolean) {
@@ -578,11 +577,13 @@ class SettingsActivity :
578577
}
579578
}
580579

581-
private fun showSetupClientCertView(isOnline:Boolean){
582-
if(isOnline){
580+
private fun showSetupClientCertView(isOnline: Boolean) {
581+
if (isOnline) {
583582
binding.settingsClientCert.visibility = View.VISIBLE
584-
}else{
583+
binding.settingsProxyGroup.visibility = View.VISIBLE
584+
} else {
585585
binding.settingsClientCert.visibility = View.GONE
586+
binding.settingsProxyGroup.visibility = View.GONE
586587
}
587588
}
588589

app/src/main/res/layout/activity_settings.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,12 @@
682682

683683
</LinearLayout>
684684

685+
<LinearLayout
686+
android:id="@+id/settings_proxy_group"
687+
android:layout_width="match_parent"
688+
android:layout_height="wrap_content"
689+
android:orientation="vertical">
690+
685691
<com.google.android.material.textfield.TextInputLayout
686692
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
687693
android:layout_width="match_parent"
@@ -797,6 +803,7 @@
797803
android:clickable="false"/>
798804
</LinearLayout>
799805
</LinearLayout>
806+
</LinearLayout>
800807

801808
<LinearLayout
802809
android:id="@+id/settings_about_category"

0 commit comments

Comments
 (0)