mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02: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:
committed by
GitHub
parent
409543566a
commit
3e5d9782cc
@@ -187,6 +187,18 @@ void shareFileAndroid(const std::string &path)
|
||||
jnienv->CallVoidMethod(activity, url_open, jurl);
|
||||
}
|
||||
|
||||
void setPlayingNowNotification(bool show)
|
||||
{
|
||||
jmethodID play_notification = jnienv->GetMethodID(activityClass,
|
||||
"setPlayingNowNotification", "(Z)V");
|
||||
|
||||
FATAL_ERROR_IF(play_notification == nullptr,
|
||||
"porting::setPlayingNowNotification unable to find Java setPlayingNowNotification method");
|
||||
|
||||
jboolean jshow = show;
|
||||
jnienv->CallVoidMethod(activity, play_notification, jshow);
|
||||
}
|
||||
|
||||
AndroidDialogType getLastInputDialogType()
|
||||
{
|
||||
jmethodID lastdialogtype = jnienv->GetMethodID(activityClass,
|
||||
|
Reference in New Issue
Block a user