File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
pythonforandroid/bootstraps/qt6/build/src/main/java/org/kivy/android Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -130,11 +130,14 @@ public void run() {
130
130
} else {
131
131
Log .v (TAG , "UnSetting Secure Window" );
132
132
window .clearFlags (WindowManager .LayoutParams .FLAG_SECURE );
133
- if (ViewCompat .isAttachedToWindow (window .getDecorView ())) {
133
+ // The below forces a redraw of the window/view, which is needed on some phones
134
+ // to actually clear the flag. However on some other phones, it crashes the app...
135
+ // see https://github.com/spesmilo/electrum/issues/8522
136
+ /*if (ViewCompat.isAttachedToWindow(window.getDecorView())) {
134
137
WindowManager wm = this.mActivity.getWindowManager();
135
138
wm.removeViewImmediate(window.getDecorView());
136
139
wm.addView(window.getDecorView(), window.getAttributes());
137
- }
140
+ }*/
138
141
}
139
142
}
140
143
}._initialize (this , secure ));
You can’t perform that action at this time.
0 commit comments