You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Remove unnecessary semicolons from Android Java code
(cherry picked from commit 360447001d)
This commit is contained in:
committed by
Rémi Verschelde
parent
ca1a2e1124
commit
2b78d618f4
@@ -43,10 +43,10 @@ public class Dictionary extends HashMap<String, Object> {
|
|||||||
for (String key : keys) {
|
for (String key : keys) {
|
||||||
ret[i] = key;
|
ret[i] = key;
|
||||||
i++;
|
i++;
|
||||||
};
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
};
|
}
|
||||||
|
|
||||||
public Object[] get_values() {
|
public Object[] get_values() {
|
||||||
Object[] ret = new Object[size()];
|
Object[] ret = new Object[size()];
|
||||||
@@ -55,21 +55,21 @@ public class Dictionary extends HashMap<String, Object> {
|
|||||||
for (String key : keys) {
|
for (String key : keys) {
|
||||||
ret[i] = get(key);
|
ret[i] = get(key);
|
||||||
i++;
|
i++;
|
||||||
};
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
};
|
}
|
||||||
|
|
||||||
public void set_keys(String[] keys) {
|
public void set_keys(String[] keys) {
|
||||||
keys_cache = keys;
|
keys_cache = keys;
|
||||||
};
|
}
|
||||||
|
|
||||||
public void set_values(Object[] vals) {
|
public void set_values(Object[] vals) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (String key : keys_cache) {
|
for (String key : keys_cache) {
|
||||||
put(key, vals[i]);
|
put(key, vals[i]);
|
||||||
i++;
|
i++;
|
||||||
};
|
}
|
||||||
keys_cache = null;
|
keys_cache = null;
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
|||||||
for (int i = 0; i < permissions.length; i++) {
|
for (int i = 0; i < permissions.length; i++) {
|
||||||
GodotLib.requestPermissionResult(permissions[i], grantResults[i] == PackageManager.PERMISSION_GRANTED);
|
GodotLib.requestPermissionResult(permissions[i], grantResults[i] == PackageManager.PERMISSION_GRANTED);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invoked on the render thread when the Godot setup is complete.
|
* Invoked on the render thread when the Godot setup is complete.
|
||||||
|
|||||||
@@ -409,12 +409,12 @@ public class GodotIO {
|
|||||||
|
|
||||||
//InputMethodManager inputMgr = (InputMethodManager)activity.getSystemService(Context.INPUT_METHOD_SERVICE);
|
//InputMethodManager inputMgr = (InputMethodManager)activity.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
//inputMgr.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
|
//inputMgr.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
|
||||||
};
|
}
|
||||||
|
|
||||||
public void hideKeyboard() {
|
public void hideKeyboard() {
|
||||||
if (edit != null)
|
if (edit != null)
|
||||||
edit.hideKeyboard();
|
edit.hideKeyboard();
|
||||||
};
|
}
|
||||||
|
|
||||||
public void setScreenOrientation(int p_orientation) {
|
public void setScreenOrientation(int p_orientation) {
|
||||||
switch (p_orientation) {
|
switch (p_orientation) {
|
||||||
|
|||||||
Reference in New Issue
Block a user