From 9df5bdd62f2cc5b912db14b7569f5580368c3df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Schu=CC=88ller?= Date: Wed, 13 Mar 2019 13:34:17 +0100 Subject: [PATCH] Login Info --- .../peertube/activity/LoginActivity.java | 11 +++++++++ app/src/main/res/layout/activity_login.xml | 23 ++++++++++++++++--- app/src/main/res/values/strings.xml | 1 + 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/schueller/peertube/activity/LoginActivity.java b/app/src/main/java/net/schueller/peertube/activity/LoginActivity.java index 991931b..df0a6df 100644 --- a/app/src/main/java/net/schueller/peertube/activity/LoginActivity.java +++ b/app/src/main/java/net/schueller/peertube/activity/LoginActivity.java @@ -23,6 +23,7 @@ import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.os.Bundle; +import android.text.InputType; import android.util.Log; import android.widget.AutoCompleteTextView; import android.widget.Button; @@ -78,6 +79,16 @@ public class LoginActivity extends CommonActivity { } + @Override + public void onResume() { + + EditText mServerName = findViewById(R.id.login_current_server); + mServerName.setText(APIUrlHelper.getUrl(this)); + mServerName.setInputType(InputType.TYPE_NULL); + + super.onResume(); + } + @Override public boolean onSupportNavigateUp() { finish(); // close this activity as oppose to navigating up diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index fd5bdc0..781f51b 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -7,8 +7,8 @@ + android:text="Alpha! Login is still in heavy development and may not work correctly! You must have an account on the instance you are connecting to. Registration is currently not supported" + android:textSize="16sp" /> + + + + + + + like dislike 1.0.0-alpha.7 + Current Server \ No newline at end of file