From c3f34ac3fa1c05416e1d7e2d88876e523dafe265 Mon Sep 17 00:00:00 2001 From: Ryan Meredith Date: Fri, 25 Sep 2020 11:50:59 -0400 Subject: Android: Add "Ignore for this session" to Warning AlertMessages --- Source/Android/jni/MainAndroid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Android/jni/MainAndroid.cpp') diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 928892b923..3904647a12 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -151,14 +151,14 @@ void Host_TitleChanged() { } -static bool MsgAlert(const char* caption, const char* text, bool yes_no, Common::MsgType /*style*/) +static bool MsgAlert(const char* caption, const char* text, bool yes_no, Common::MsgType style) { JNIEnv* env = IDCache::GetEnvForThread(); // Execute the Java method. jboolean result = env->CallStaticBooleanMethod( IDCache::GetNativeLibraryClass(), IDCache::GetDisplayAlertMsg(), ToJString(env, caption), - ToJString(env, text), yes_no ? JNI_TRUE : JNI_FALSE); + ToJString(env, text), yes_no ? JNI_TRUE : JNI_FALSE, style == Common::MsgType::Warning); return result != JNI_FALSE; } -- cgit v1.2.3