mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
YADESK-690 FLAG_SECURE
This commit is contained in:
parent
568f2d8645
commit
173ca6627b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user