-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13493 from nextcloud/enforceServers
Enforced servers
- Loading branch information
Showing
8 changed files
with
133 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/owncloud/android/authentication/EnforcedServer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Nextcloud - Android Client | ||
* | ||
* SPDX-FileCopyrightText: 2024 Tobias Kaminsky <[email protected]> | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
package com.owncloud.android.authentication | ||
|
||
data class EnforcedServer(val name: String, val url: String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -80,6 +79,16 @@ | |
</com.google.android.material.textfield.TextInputLayout> | ||
</FrameLayout> | ||
|
||
<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" | ||
android:layout_width="match_parent" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -15,6 +14,7 @@ | |
android:layout_height="match_parent" | ||
android:layout_gravity="center" | ||
android:fillViewport="true" | ||
android:foregroundTint="@color/login_text_color" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
|
@@ -79,6 +79,16 @@ | |
</com.google.android.material.textfield.TextInputLayout> | ||
</FrameLayout> | ||
|
||
<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" | ||
android:layout_width="match_parent" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Nextcloud - Android Client | ||
~ | ||
~ SPDX-FileCopyrightText: 2006 The Android Open Source Project | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
<TextView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@android:id/text1" | ||
style="?android:attr/spinnerItemStyle" | ||
android:singleLine="true" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:textColor="@color/login_text_color" | ||
android:ellipsize="marquee" | ||
android:textAlignment="inherit"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters