mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Start/Shutdown Android server from RemoteManager dialog.
ANativeActivity_finish when renderdoccmd() returns.
This commit is contained in:
committed by
Baldur Karlsson
parent
53c0c20c8a
commit
70f55a1458
@@ -103,6 +103,8 @@ vector<string> getRenderdoccmdArgs()
|
||||
iss >> sub;
|
||||
ret.push_back(sub);
|
||||
}
|
||||
android_state->activity->vm->DetachCurrentThread();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -116,10 +118,10 @@ void handle_cmd(android_app *app, int32_t cmd)
|
||||
if(!args.size())
|
||||
break; // Nothing for APK to do.
|
||||
renderdoccmd(GlobalEnvironment(), args);
|
||||
// activity is done and should be closed
|
||||
ANativeActivity_finish(android_state->activity);
|
||||
break;
|
||||
}
|
||||
case APP_CMD_TERM_WINDOW: break;
|
||||
default: __android_log_print(ANDROID_LOG_INFO, LOGCAT_TAG, "event not handled: %d", cmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user