forked from github/wulkanowy-mirror
Add privacy policy link (#320)
This commit is contained in:
parent
f2fa04105d
commit
333f7bfa16
@ -2,6 +2,7 @@ package io.github.wulkanowy.ui.modules.login.form
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.os.Bundle
|
||||
import android.text.method.LinkMovementMethod
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.View.GONE
|
||||
@ -53,6 +54,7 @@ class LoginFormFragment : BaseFragment(), LoginFormView {
|
||||
loginFormName.setOnTextChangedListener { presenter.onNameTextChanged() }
|
||||
loginFormPass.setOnTextChangedListener { presenter.onPassTextChanged() }
|
||||
loginFormHost.setOnItemSelectedListener { presenter.onHostSelected() }
|
||||
loginFormPrivacyPolicyLink.movementMethod = LinkMovementMethod.getInstance()
|
||||
loginFormSignIn.setOnClickListener { presenter.attemptLogin() }
|
||||
|
||||
loginFormPass.setOnEditorActionListener { _, id, _ ->
|
||||
|
@ -124,7 +124,8 @@
|
||||
<androidx.appcompat.widget.AppCompatSpinner
|
||||
android:id="@+id/loginFormHost"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp" />
|
||||
android:layout_height="56dp"
|
||||
android:entries="@array/endpoints_keys" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
@ -144,6 +145,15 @@
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="@+id/loginFormHostLayout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/loginFormPrivacyPolicyLink"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:text="@string/login_privacy_policy"
|
||||
app:layout_constraintStart_toStartOf="@+id/loginFormHostLayout"
|
||||
app:layout_constraintTop_toBottomOf="@+id/loginFormHostLayout" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/loginFormSignIn"
|
||||
style="@style/Widget.MaterialComponents.Button"
|
||||
|
@ -26,6 +26,7 @@
|
||||
<string name="login_password_hint">Hasło</string>
|
||||
<string name="login_host_hint">Dziennik</string>
|
||||
<string name="login_symbol_hint">Symbol</string>
|
||||
<string name="login_privacy_policy"><a href="https://wulkanowy.github.io/polityka-prywatnosci.html">Polityka prywatności</a></string>
|
||||
<string name="login_sign_in">Zaloguj</string>
|
||||
<string name="login_invalid_password">To hasło jest za krótkie</string>
|
||||
<string name="login_incorrect_password">Dane logowania są niepoprawne</string>
|
||||
|
@ -26,6 +26,7 @@
|
||||
<string name="login_password_hint">Password</string>
|
||||
<string name="login_host_hint">Register</string>
|
||||
<string name="login_symbol_hint">Symbol</string>
|
||||
<string name="login_privacy_policy"><a href="https://wulkanowy.github.io/polityka-prywatnosci.html">Privacy policy</a></string>
|
||||
<string name="login_sign_in">Sign in</string>
|
||||
<string name="login_invalid_password">This password is too short</string>
|
||||
<string name="login_incorrect_password">Login details are incorrect</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user