diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 0e395b677c..6afb8510d9 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -473,7 +473,7 @@ void GameSettingsScreen::CreateViews() { #ifdef _WIN32 networkingSettings->Add(new PopupTextInputChoice(&g_Config.proAdhocServer, n->T("Change proAdhocServer Address"), "", 255, screenManager())); #elif defined(ANDROID) - networkingSettings->Add(new ChoiceWithValueDisplay(&g_Config.proAdhocServer, sy->T("Change proAdhocServer Address"), nullptr))->OnClick.Handle(this, &GameSettingsScreen::OnChangeproAdhocServerAddress); + networkingSettings->Add(new ChoiceWithValueDisplay(&g_Config.proAdhocServer, n->T("Change proAdhocServer Address"), nullptr))->OnClick.Handle(this, &GameSettingsScreen::OnChangeproAdhocServerAddress); #else networkingSettings->Add(new ChoiceWithValueDisplay(&g_Config.proAdhocServer, n->T("Change proAdhocServer Address"), nullptr))->OnClick.Handle(this, &GameSettingsScreen::OnChangeproAdhocServerAddress); #endif @@ -917,7 +917,7 @@ UI::EventReturn GameSettingsScreen::OnChangeNickname(UI::EventParams &e) { g_Config.sNickName = name; } #elif defined(ANDROID) - System_SendMessage("inputbox", ("nickname :" + g_Config.sNickName).c_str()); + System_SendMessage("inputbox", ("nickname:" + g_Config.sNickName).c_str()); #endif return UI::EVENT_DONE; } @@ -937,7 +937,7 @@ UI::EventReturn GameSettingsScreen::OnChangeproAdhocServerAddress(UI::EventParam else screenManager()->push(new ProAdhocServerScreen); #elif defined(ANDROID) - System_SendMessage("inputbox", ("IP :" + g_Config.proAdhocServer).c_str()); + System_SendMessage("inputbox", ("IP:" + g_Config.proAdhocServer).c_str()); #else screenManager()->push(new ProAdhocServerScreen); #endif diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 3cc43ad899..461998d0ef 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -739,9 +739,9 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) { } if (msg == "inputbox_completed") { SplitString(value, ':', inputboxValue); - if (inputboxValue[0] == "IP ") + if (inputboxValue[0] == "IP") g_Config.proAdhocServer = inputboxValue[1]; - if (inputboxValue[0] == "nickname ") + if (inputboxValue[0] == "nickname") g_Config.sNickName = inputboxValue[1]; inputboxValue.clear(); }