Android: Fix deleting blocks when double click to join from server list

This commit is contained in:
UnknownShadow200 2021-05-15 15:31:24 +10:00
parent c9d0fcbf5e
commit b8b29dfb07
3 changed files with 5 additions and 1 deletions

View File

@ -502,6 +502,7 @@ public class MainActivity extends Activity {
@Override @Override
public boolean deleteSurroundingText(int beforeLength, int afterLength) { public boolean deleteSurroundingText(int beforeLength, int afterLength) {
boolean success = super.deleteSurroundingText(beforeLength, afterLength); boolean success = super.deleteSurroundingText(beforeLength, afterLength);
updateText(); updateText();
return success; return success;

View File

@ -1113,6 +1113,9 @@ static void OnInit(void) {
Event_Register_(&UserEvents.HackPermsChanged, NULL, InputHandler_CheckZoomFov); Event_Register_(&UserEvents.HackPermsChanged, NULL, InputHandler_CheckZoomFov);
KeyBind_Init(); KeyBind_Init();
StoredHotkeys_LoadAll(); StoredHotkeys_LoadAll();
/* Fix issue with Android where if you double click in server list to join, a touch */
/* pointer is stuck down when the game loads (so you instantly start deleting blocks) */
ClearTouches();
} }
static void OnFree(void) { static void OnFree(void) {

View File

@ -131,7 +131,7 @@ void interop_SyncFS(void) {
FS.syncfs(false, function(err) { FS.syncfs(false, function(err) {
if (!err) return; if (!err) return;
console.log(err); console.log(err);
ccall('Platform_LogError', 'void', ['string'], ['&cError saving IndexedDB:']); ccall('Platform_LogError', 'void', ['string'], ['&cError saving files to IndexedDB:']);
ccall('Platform_LogError', 'void', ['string'], [' &c' + err]); ccall('Platform_LogError', 'void', ['string'], [' &c' + err]);
}); });
}); });