Fix up DisplayMessage for android

This commit is contained in:
zilmar 2019-04-23 07:01:10 +09:30
parent b629c0eb97
commit ffc24d4e7d
2 changed files with 20 additions and 0 deletions

View File

@ -72,6 +72,23 @@ void CNotificationImp::FatalError(const char * Message) const
}
}
void CNotificationImp::DisplayWarning(const char * Message) const
{
#ifdef ANDROID
g_JavaBridge->DisplayError(Message);
#else
Message = NULL; // not used
#endif
}
void CNotificationImp::DisplayWarning(LanguageStringID StringID) const
{
if (g_Lang)
{
DisplayError(g_Lang->GetString(StringID).c_str());
}
}
void CNotificationImp::DisplayMessage(int DisplayTime, LanguageStringID StringID) const
{
DisplayMessage(DisplayTime, g_Lang->GetString(StringID).c_str());

View File

@ -27,6 +27,9 @@ public:
void FatalError(LanguageStringID StringID) const;
//User Feedback
void DisplayWarning(const char * Message) const;
void DisplayWarning(LanguageStringID StringID) const;
void DisplayMessage(int DisplayTime, const char * Message) const;
void DisplayMessage(int DisplayTime, LanguageStringID StringID) const;