| 443 | } |
| 444 | |
| 445 | void AndroidPlatform::terminate(ExitCode code) |
| 446 | { |
| 447 | switch (code) |
| 448 | { |
| 449 | case ExitCode::Success: |
| 450 | case ExitCode::Close: |
| 451 | log_output.clear(); |
| 452 | break; |
| 453 | case ExitCode::FatalError: |
| 454 | { |
| 455 | const std::string error_message = "Error! Could not launch selected sample:" + get_last_error(); |
| 456 | send_notification(error_message); |
| 457 | break; |
| 458 | } |
| 459 | default: |
| 460 | break; |
| 461 | } |
| 462 | |
| 463 | while (process_android_events(app)) |
| 464 | { |
| 465 | // Process events until app->destroyRequested is set |
| 466 | } |
| 467 | |
| 468 | plugins.clear(); |
| 469 | Platform::terminate(code); |
| 470 | } |
| 471 | |
| 472 | void AndroidPlatform::send_notification(const std::string &message) |
| 473 | { |
nothing calls this directly
no test coverage detected