From 973adc6b2f571c9ff6f202b6c6c83011e88eb389 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 31 Dec 2013 10:55:59 +0800 Subject: [PATCH] Updates nativeactivity.cpp. --- cocos/2d/platform/android/nativeactivity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/platform/android/nativeactivity.cpp b/cocos/2d/platform/android/nativeactivity.cpp index 1ec481c9d2..8f6e7ce3e1 100644 --- a/cocos/2d/platform/android/nativeactivity.cpp +++ b/cocos/2d/platform/android/nativeactivity.cpp @@ -561,7 +561,7 @@ static void engine_handle_cmd(struct android_app* app, int32_t cmd) { { cocos2d::Application::getInstance()->applicationDidEnterBackground(); cocos2d::EventCustom backgroundEvent(EVENT_COME_TO_BACKGROUND); - cocos2d::EventDispatcher::getInstance()->dispatchEvent(&backgroundEvent); + cocos2d::Director::getInstance()->getEventDispatcher()->dispatchEvent(&backgroundEvent); // Also stop animating. engine->animating = 0; engine_draw_frame(engine);