summaryrefslogtreecommitdiff
path: root/Source/Android/jni/MainAndroid.cpp
diff options
context:
space:
mode:
authorRyan Meredith <rwm@udel.edu>2020-09-25 11:50:59 -0400
committerRyan Meredith <rwm@udel.edu>2020-09-25 11:50:59 -0400
commitc3f34ac3fa1c05416e1d7e2d88876e523dafe265 (patch)
tree48441e99e70e3c5ab7e89d99233a2c634b10a5b3 /Source/Android/jni/MainAndroid.cpp
parent991eb6ae832a729facb01aa26f8e2c20b815c0e9 (diff)
Android: Add "Ignore for this session" to Warning AlertMessages
Diffstat (limited to 'Source/Android/jni/MainAndroid.cpp')
-rw-r--r--Source/Android/jni/MainAndroid.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}