Prevent screenshots of recovery code

This is may be inconvenient for some people, but it is way more secure as screenshots can be accessed by malicious apps that look our for BIP39 codes. Better to store the code on paper.
This commit is contained in:
Torsten Grote 2021-08-11 14:21:25 +02:00 committed by Chirayu Desai
parent 3b1a4e3881
commit d2a748c34a

View file

@ -2,6 +2,7 @@ package com.stevesoltys.seedvault.ui.recoverycode
import android.os.Bundle
import android.view.MenuItem
import android.view.WindowManager.LayoutParams.FLAG_SECURE
import com.stevesoltys.seedvault.R
import com.stevesoltys.seedvault.ui.BackupActivity
import com.stevesoltys.seedvault.ui.INTENT_EXTRA_IS_RESTORE
@ -17,6 +18,7 @@ class RecoveryCodeActivity : BackupActivity() {
super.onCreate(savedInstanceState)
if (isSetupWizard()) hideSystemUiNavigation()
window.addFlags(FLAG_SECURE)
setContentView(R.layout.activity_recovery_code)