[Android] Minor postInvalidateWindowSurface JNI cleanup

This commit is contained in:
Triang3l 2022-04-26 22:41:11 +03:00
parent 12ff951972
commit fcf6a7ded1
2 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ public abstract class WindowedAppActivity extends Activity {
}
// Used from the native WindowedAppContext. May be called from non-UI threads.
@SuppressWarnings("UnusedDeclaration")
protected void postInvalidateWindowSurface() {
if (mWindowSurfaceView == null) {
return;

View File

@ -336,6 +336,7 @@ void AndroidWindowedAppContext::Shutdown() {
ui_thread_looper_ = nullptr;
}
activity_method_post_invalidate_window_surface_ = nullptr;
activity_method_finish_ = nullptr;
if (activity_) {
ui_thread_jni_env_->DeleteGlobalRef(activity_);