mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-22 19:14:50 +00:00
Disable onLowMemory callback - after this has executed, it would
call Dalvik's garbage collector - definitely want to avoid that
This commit is contained in:
parent
c981cb77f8
commit
92e5036eb6
@ -594,13 +594,6 @@ static void onConfigurationChanged(ANativeActivity* activity)
|
||||
android_app_write_cmd(android_app, APP_CMD_CONFIG_CHANGED);
|
||||
}
|
||||
|
||||
static void onLowMemory(ANativeActivity* activity)
|
||||
{
|
||||
struct android_app* android_app = (struct android_app*)activity->instance;
|
||||
RARCH_LOG("LowMemory: %p\n", activity);
|
||||
android_app_write_cmd(android_app, APP_CMD_LOW_MEMORY);
|
||||
}
|
||||
|
||||
static void onWindowFocusChanged(ANativeActivity* activity, int focused)
|
||||
{
|
||||
RARCH_LOG("WindowFocusChanged: %p -- %d\n", activity, focused);
|
||||
@ -649,7 +642,7 @@ void ANativeActivity_onCreate(ANativeActivity* activity,
|
||||
activity->callbacks->onPause = onPause;
|
||||
activity->callbacks->onStop = onStop;
|
||||
activity->callbacks->onConfigurationChanged = onConfigurationChanged;
|
||||
activity->callbacks->onLowMemory = onLowMemory;
|
||||
activity->callbacks->onLowMemory = NULL;
|
||||
activity->callbacks->onWindowFocusChanged = onWindowFocusChanged;
|
||||
activity->callbacks->onNativeWindowCreated = onNativeWindowCreated;
|
||||
activity->callbacks->onNativeWindowDestroyed = onNativeWindowDestroyed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user