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:
parent
9612625b59
commit
eacdeb6e2b
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue