Skip to content

Commit

Permalink
Fix[quick_settings]: crash when leaving main activity
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Nov 22, 2024
1 parent b5de32d commit fe78b94
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ protected void onPause() {
if (CallbackBridge.isGrabbing()){
sendKeyPress(LwjglGlfwKeycode.GLFW_KEY_ESCAPE);
}
mQuickSettingSideDialog.cancel();
if(mQuickSettingSideDialog != null) {
mQuickSettingSideDialog.cancel();
}
CallbackBridge.nativeSetWindowAttrib(LwjglGlfwKeycode.GLFW_HOVERED, 0);
super.onPause();
}
Expand Down

0 comments on commit fe78b94

Please sign in to comment.