1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Android: Persistent notification while ingame (#13125)

Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: grorp <grorp@posteo.de>
This commit is contained in:
Muhammad Rifqi Priyo Susanto 2025-04-24 18:38:52 +07:00 committed by GitHub
parent 409543566a
commit 3e5d9782cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 111 additions and 8 deletions

View file

@ -1021,6 +1021,10 @@ void Game::run()
const bool initial_window_maximized = !g_settings->getBool("fullscreen") &&
g_settings->getBool("window_maximized");
#ifdef __ANDROID__
porting::setPlayingNowNotification(true);
#endif
auto framemarker = FrameMarker("Game::run()-frame").started();
while (m_rendering_engine->run()
@ -1103,6 +1107,10 @@ void Game::run()
framemarker.end();
#ifdef __ANDROID__
porting::setPlayingNowNotification(false);
#endif
RenderingEngine::autosaveScreensizeAndCo(initial_screen_size, initial_window_maximized);
}