Skip to content

Commit cff1e9c

Browse files
stujones11nerzhul
authored andcommittedApr 19, 2019
Android: Clear chat open flag on cancel or completion (#8478)
1 parent 38b94f2 commit cff1e9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎src/client/game.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,9 @@ void Game::processKeyInput()
18801880
} else if (wasKeyDown(KeyType::INVENTORY)) {
18811881
openInventory();
18821882
} else if (input->cancelPressed()) {
1883+
#ifdef __ANDROID__
1884+
m_android_chat_open = false;
1885+
#endif
18831886
if (!gui_chat_console->isOpenInhibited()) {
18841887
showPauseMenu();
18851888
}
@@ -2079,6 +2082,7 @@ void Game::handleAndroidChatInput()
20792082
if (m_android_chat_open && porting::getInputDialogState() == 0) {
20802083
std::string text = porting::getInputDialogValue();
20812084
client->typeChatMessage(utf8_to_wide(text));
2085+
m_android_chat_open = false;
20822086
}
20832087
}
20842088
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.