[Android] Minor postInvalidateWindowSurface JNI cleanup
This commit is contained in:
parent
12ff951972
commit
fcf6a7ded1
|
@ -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;
|
||||
|
|
|
@ -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_);
|
||||
|
|
Loading…
Reference in New Issue