Skip to content

Commit

Permalink
qt6: remove hack for removing FLAG_SECURE flag via re-adding View to …
Browse files Browse the repository at this point in the history
…WindowManager. This seems to be unstable

on certain phones, and simply calling clearFlags() is effective on android >= 8.
  • Loading branch information
accumulator committed Feb 22, 2024
1 parent 4f1a1a3 commit 60178e3
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ public void run() {
} else {
Log.v(TAG, "UnSetting Secure Window");
window.clearFlags(WindowManager.LayoutParams.FLAG_SECURE);
if (ViewCompat.isAttachedToWindow(window.getDecorView())) {
WindowManager wm = this.mActivity.getWindowManager();
wm.removeViewImmediate(window.getDecorView());
wm.addView(window.getDecorView(), window.getAttributes());
}
}
}
}._initialize(this, secure));
Expand Down

0 comments on commit 60178e3

Please sign in to comment.