Catched exception in SecureFragment
This commit is contained in:
parent
c931e19073
commit
86eb0694a8
1 changed files with 5 additions and 1 deletions
|
@ -82,7 +82,11 @@ abstract class SecureFragment<T : ViewDataBinding> : GenericFragment<T>() {
|
|||
|
||||
if (ViewCompat.isAttachedToWindow(window.decorView)) {
|
||||
Log.d("[Secure Fragment] Redrawing window decorView to apply flag")
|
||||
try {
|
||||
windowManager.updateViewLayout(window.decorView, window.attributes)
|
||||
} catch (ise: IllegalStateException) {
|
||||
Log.e("[Secure Fragment] Failed to update view layout: $ise")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue