Catched exception in SecureFragment

This commit is contained in:
Sylvain Berfini 2021-05-17 10:17:58 +02:00
parent c931e19073
commit 86eb0694a8

View file

@ -82,7 +82,11 @@ abstract class SecureFragment<T : ViewDataBinding> : GenericFragment<T>() {
if (ViewCompat.isAttachedToWindow(window.decorView)) { if (ViewCompat.isAttachedToWindow(window.decorView)) {
Log.d("[Secure Fragment] Redrawing window decorView to apply flag") Log.d("[Secure Fragment] Redrawing window decorView to apply flag")
windowManager.updateViewLayout(window.decorView, window.attributes) try {
windowManager.updateViewLayout(window.decorView, window.attributes)
} catch (ise: IllegalStateException) {
Log.e("[Secure Fragment] Failed to update view layout: $ise")
}
} }
} }
} }