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:
Jarne Demeulemeester 2023-05-14 18:00:32 +02:00
parent 8000601cab
commit b37532268c
No known key found for this signature in database
GPG key ID: 1E5C6AFBD622E9F5
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,7 @@
package dev.jdtech.jellyfin.fragments
import android.os.Bundle
import android.text.method.LinkMovementMethod
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
@ -33,6 +34,8 @@ class AddServerFragment : Fragment() {
): View {
binding = FragmentAddServerBinding.inflate(inflater)
binding.privacyPolicyText.movementMethod = LinkMovementMethod.getInstance()
(binding.editTextServerAddress as AppCompatEditText).setOnEditorActionListener { _, actionId, _ ->
return@setOnEditorActionListener when (actionId) {
EditorInfo.IME_ACTION_GO -> {

View file

@ -187,4 +187,5 @@
<string name="cancel_download">Cancel 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="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>