chore: add privacy policy notice on AddServerFragment
This is required by Huawei... But I see no reason to not show it on any version.
This commit is contained in:
parent
8000601cab
commit
b37532268c
2 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package dev.jdtech.jellyfin.fragments
|
package dev.jdtech.jellyfin.fragments
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.text.method.LinkMovementMethod
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
@ -33,6 +34,8 @@ class AddServerFragment : Fragment() {
|
||||||
): View {
|
): View {
|
||||||
binding = FragmentAddServerBinding.inflate(inflater)
|
binding = FragmentAddServerBinding.inflate(inflater)
|
||||||
|
|
||||||
|
binding.privacyPolicyText.movementMethod = LinkMovementMethod.getInstance()
|
||||||
|
|
||||||
(binding.editTextServerAddress as AppCompatEditText).setOnEditorActionListener { _, actionId, _ ->
|
(binding.editTextServerAddress as AppCompatEditText).setOnEditorActionListener { _, actionId, _ ->
|
||||||
return@setOnEditorActionListener when (actionId) {
|
return@setOnEditorActionListener when (actionId) {
|
||||||
EditorInfo.IME_ACTION_GO -> {
|
EditorInfo.IME_ACTION_GO -> {
|
||||||
|
|
|
@ -187,4 +187,5 @@
|
||||||
<string name="cancel_download">Cancel download</string>
|
<string name="cancel_download">Cancel download</string>
|
||||||
<string name="cancel_download_message">Are you sure you want to cancel the download?</string>
|
<string name="cancel_download_message">Are you sure you want to cancel the download?</string>
|
||||||
<string name="stop_download">Stop download</string>
|
<string name="stop_download">Stop download</string>
|
||||||
|
<string name="privacy_policy_notice">By using Findroid you agree with the <a href='https://raw.githubusercontent.com/jarnedemeulemeester/findroid/main/PRIVACY'>Privacy Policy</a> which states that we do not collect any data</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue