YADESK-690 FLAG_SECURE

This commit is contained in:
Adam Velebil 2022-06-03 17:14:43 +02:00
parent 568f2d8645
commit 173ca6627b
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084

View File

@ -1,6 +1,7 @@
package com.yubico.authenticator
import android.os.Bundle
import android.view.WindowManager
import androidx.activity.viewModels
import androidx.lifecycle.lifecycleScope
import com.yubico.authenticator.logging.FlutterLog
@ -28,6 +29,11 @@ class MainActivity : FlutterFragmentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
window.setFlags(
WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE
)
yubikit = YubiKitManager(this)
viewModel.handleYubiKey.observe(this) {