Skip to content

Commit

Permalink
Android: Clear chat open flag on cancel or completion (#8478)
Browse files Browse the repository at this point in the history
  • Loading branch information
stujones11 authored and nerzhul committed Apr 19, 2019
1 parent 38b94f2 commit cff1e9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/game.cpp
Expand Up @@ -1880,6 +1880,9 @@ void Game::processKeyInput()
} else if (wasKeyDown(KeyType::INVENTORY)) {
openInventory();
} else if (input->cancelPressed()) {
#ifdef __ANDROID__
m_android_chat_open = false;
#endif
if (!gui_chat_console->isOpenInhibited()) {
showPauseMenu();
}
Expand Down Expand Up @@ -2079,6 +2082,7 @@ void Game::handleAndroidChatInput()
if (m_android_chat_open && porting::getInputDialogState() == 0) {
std::string text = porting::getInputDialogValue();
client->typeChatMessage(utf8_to_wide(text));
m_android_chat_open = false;
}
}
#endif
Expand Down

0 comments on commit cff1e9c

Please sign in to comment.