Skip to content

Commit

Permalink
- no need for linearlayout
Browse files Browse the repository at this point in the history
- correct license

Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Sep 2, 2024
1 parent 84f55ce commit df8eef1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ protected void onCreate(Bundle savedInstanceState) {
accountSetupBinding.hostUrlFrame.setVisibility(View.GONE);
accountSetupBinding.hostUrlInputHelperText.setVisibility(View.GONE);
accountSetupBinding.scanQr.setVisibility(View.GONE);
accountSetupBinding.multipleServersLayout.setVisibility(View.VISIBLE);
accountSetupBinding.serversSpinner.setVisibility(View.VISIBLE);

ArrayAdapter<String> adapter = new ArrayAdapter<>(this, R.layout.enforced_servers_spinner);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2024 Your Name <your@email.com>
* SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias.kaminsky@nextcloud.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

Expand Down
27 changes: 10 additions & 17 deletions app/src/main/res/layout-land/account_setup.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2019 Tobias Kaminsky <[email protected]>
Expand Down Expand Up @@ -80,21 +79,15 @@
</com.google.android.material.textfield.TextInputLayout>
</FrameLayout>

<LinearLayout
android:id="@+id/multiple_servers_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone">

<Spinner
android:id="@+id/servers_spinner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:foregroundTint="#FFFFFF"
android:spinnerMode="dialog"
android:textColor="@color/white_helper_text" />
</LinearLayout>
<Spinner
android:id="@+id/servers_spinner"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:foregroundTint="#FFFFFF"
android:spinnerMode="dialog"
android:textColor="@color/white_helper_text"
android:visibility="gone" />

<TextView
android:id="@+id/host_url_input_helper_text"
Expand Down
27 changes: 10 additions & 17 deletions app/src/main/res/layout/account_setup.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2019 Tobias Kaminsky <[email protected]>
Expand Down Expand Up @@ -80,21 +79,15 @@
</com.google.android.material.textfield.TextInputLayout>
</FrameLayout>

<LinearLayout
android:id="@+id/multiple_servers_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone">

<Spinner
android:id="@+id/servers_spinner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:foregroundTint="#FFFFFF"
android:spinnerMode="dialog"
android:textColor="@color/white_helper_text" />
</LinearLayout>
<Spinner
android:id="@+id/servers_spinner"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:foregroundTint="#FFFFFF"
android:spinnerMode="dialog"
android:textColor="@color/white_helper_text"
android:visibility="gone" />

<TextView
android:id="@+id/host_url_input_helper_text"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
If set, will replace all other login methods available -->
<string name="webview_login_url" translatable="false"></string>

<!-- [{\"name\":\"nameu","url":"url"},{"name":"name2","url":"url1"}]-->
<!-- [{\"name\":\"name1\",\"url\":\"url\"},{\"name\":\"name2\",\"url\":\"url1\"}]-->
<string name="enforce_servers" translatable="false"></string>


Expand Down

0 comments on commit df8eef1

Please sign in to comment.