Merge pull request #508 from chirayudesai/506-block-screenshots
Disable screenshots on more recovery code screens
This commit is contained in:
commit
630b2d1e70
2 changed files with 7 additions and 0 deletions
|
@ -14,6 +14,7 @@ import android.view.View.GONE
|
||||||
import android.view.View.OnFocusChangeListener
|
import android.view.View.OnFocusChangeListener
|
||||||
import android.view.View.VISIBLE
|
import android.view.View.VISIBLE
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
import android.view.WindowManager.LayoutParams.FLAG_SECURE
|
||||||
import android.widget.ArrayAdapter
|
import android.widget.ArrayAdapter
|
||||||
import android.widget.AutoCompleteTextView
|
import android.widget.AutoCompleteTextView
|
||||||
import android.widget.Button
|
import android.widget.Button
|
||||||
|
@ -70,6 +71,8 @@ class RecoveryCodeInputFragment : Fragment() {
|
||||||
): View {
|
): View {
|
||||||
val v: View = inflater.inflate(R.layout.fragment_recovery_code_input, container, false)
|
val v: View = inflater.inflate(R.layout.fragment_recovery_code_input, container, false)
|
||||||
|
|
||||||
|
if (!isDebugBuild()) getActivity()?.window?.addFlags(FLAG_SECURE)
|
||||||
|
|
||||||
introText = v.findViewById(R.id.introText)
|
introText = v.findViewById(R.id.introText)
|
||||||
doneButton = v.findViewById(R.id.doneButton)
|
doneButton = v.findViewById(R.id.doneButton)
|
||||||
newCodeButton = v.findViewById(R.id.newCodeButton)
|
newCodeButton = v.findViewById(R.id.newCodeButton)
|
||||||
|
|
|
@ -5,11 +5,13 @@ import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
import android.view.WindowManager.LayoutParams.FLAG_SECURE
|
||||||
import android.widget.Button
|
import android.widget.Button
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.recyclerview.widget.GridLayoutManager
|
import androidx.recyclerview.widget.GridLayoutManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.stevesoltys.seedvault.R
|
import com.stevesoltys.seedvault.R
|
||||||
|
import com.stevesoltys.seedvault.isDebugBuild
|
||||||
import org.koin.androidx.viewmodel.ext.android.sharedViewModel
|
import org.koin.androidx.viewmodel.ext.android.sharedViewModel
|
||||||
|
|
||||||
class RecoveryCodeOutputFragment : Fragment() {
|
class RecoveryCodeOutputFragment : Fragment() {
|
||||||
|
@ -26,6 +28,8 @@ class RecoveryCodeOutputFragment : Fragment() {
|
||||||
): View {
|
): View {
|
||||||
val v: View = inflater.inflate(R.layout.fragment_recovery_code_output, container, false)
|
val v: View = inflater.inflate(R.layout.fragment_recovery_code_output, container, false)
|
||||||
|
|
||||||
|
if (!isDebugBuild()) getActivity()?.window?.addFlags(FLAG_SECURE)
|
||||||
|
|
||||||
wordList = v.findViewById(R.id.wordList)
|
wordList = v.findViewById(R.id.wordList)
|
||||||
confirmCodeButton = v.findViewById(R.id.confirmCodeButton)
|
confirmCodeButton = v.findViewById(R.id.confirmCodeButton)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue