Skip to content

Commit

Permalink
RecoveryCode: Allow screenshots on debug builds (seedvault-app#446)
Browse files Browse the repository at this point in the history
* We already pre-fill the code on debug builds to make testing easier
* Allow screenshots too so we don't have to note down the code right away
  when testing

Change-Id: Ie9cc3080616b78a6e5f9b427c080f10c146a036d
  • Loading branch information
chirayudesai authored Oct 14, 2022
1 parent 0106c19 commit c6a7790
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.os.Bundle
import android.view.MenuItem
import android.view.WindowManager.LayoutParams.FLAG_SECURE
import com.stevesoltys.seedvault.R
import com.stevesoltys.seedvault.isDebugBuild
import com.stevesoltys.seedvault.ui.BackupActivity
import com.stevesoltys.seedvault.ui.INTENT_EXTRA_IS_RESTORE
import org.koin.androidx.viewmodel.ext.android.viewModel
Expand All @@ -15,7 +16,7 @@ class RecoveryCodeActivity : BackupActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

window.addFlags(FLAG_SECURE)
if (!isDebugBuild()) window.addFlags(FLAG_SECURE)

setContentView(R.layout.activity_recovery_code)

Expand Down

0 comments on commit c6a7790

Please sign in to comment.