Merge pull request #50071 from madmiraal/android-remove-semicolons

Remove unnecessary semicolons from Android Java code
This commit is contained in:
Rémi Verschelde 2021-07-02 11:23:49 +02:00 committed by GitHub
commit 04649ecd55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 11 deletions

View File

@ -43,10 +43,10 @@ public class Dictionary extends HashMap<String, Object> {
for (String key : keys) {
ret[i] = key;
i++;
};
}
return ret;
};
}
public Object[] get_values() {
Object[] ret = new Object[size()];
@ -55,21 +55,21 @@ public class Dictionary extends HashMap<String, Object> {
for (String key : keys) {
ret[i] = get(key);
i++;
};
}
return ret;
};
}
public void set_keys(String[] keys) {
keys_cache = keys;
};
}
public void set_values(Object[] vals) {
int i = 0;
for (String key : keys_cache) {
put(key, vals[i]);
i++;
};
}
keys_cache = null;
};
};
}
}

View File

@ -220,7 +220,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
for (int i = 0; i < permissions.length; i++) {
GodotLib.requestPermissionResult(permissions[i], grantResults[i] == PackageManager.PERMISSION_GRANTED);
}
};
}
/**
* Invoked on the render thread when the Godot setup is complete.

View File

@ -408,12 +408,12 @@ public class GodotIO {
//InputMethodManager inputMgr = (InputMethodManager)activity.getSystemService(Context.INPUT_METHOD_SERVICE);
//inputMgr.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
};
}
public void hideKeyboard() {
if (edit != null)
edit.hideKeyboard();
};
}
public void setScreenOrientation(int p_orientation) {
switch (p_orientation) {