Use Java array declarations not C-style declarations in Android Java code
(cherry picked from commit 721b3d56c5
)
This commit is contained in:
parent
2b78d618f4
commit
01ecec451c
@ -891,7 +891,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
|||||||
int displayRotation = display.getRotation();
|
int displayRotation = display.getRotation();
|
||||||
|
|
||||||
float[] adjustedValues = new float[3];
|
float[] adjustedValues = new float[3];
|
||||||
final int axisSwap[][] = {
|
final int[][] axisSwap = {
|
||||||
{ 1, -1, 0, 1 }, // ROTATION_0
|
{ 1, -1, 0, 1 }, // ROTATION_0
|
||||||
{ -1, -1, 1, 0 }, // ROTATION_90
|
{ -1, -1, 1, 0 }, // ROTATION_90
|
||||||
{ -1, 1, 0, 1 }, // ROTATION_180
|
{ -1, 1, 0, 1 }, // ROTATION_180
|
||||||
|
@ -387,7 +387,7 @@ public class GodotIO {
|
|||||||
Point size = new Point();
|
Point size = new Point();
|
||||||
display.getRealSize(size);
|
display.getRealSize(size);
|
||||||
|
|
||||||
int result[] = { 0, 0, size.x, size.y };
|
int[] result = { 0, 0, size.x, size.y };
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||||
WindowInsets insets = activity.getWindow().getDecorView().getRootWindowInsets();
|
WindowInsets insets = activity.getWindow().getDecorView().getRootWindowInsets();
|
||||||
DisplayCutout cutout = insets.getDisplayCutout();
|
DisplayCutout cutout = insets.getDisplayCutout();
|
||||||
|
@ -39,7 +39,7 @@ public class Crypt {
|
|||||||
// Create MD5 Hash
|
// Create MD5 Hash
|
||||||
MessageDigest digest = java.security.MessageDigest.getInstance("MD5");
|
MessageDigest digest = java.security.MessageDigest.getInstance("MD5");
|
||||||
digest.update(input.getBytes());
|
digest.update(input.getBytes());
|
||||||
byte messageDigest[] = digest.digest();
|
byte[] messageDigest = digest.digest();
|
||||||
|
|
||||||
// Create Hex String
|
// Create Hex String
|
||||||
StringBuffer hexString = new StringBuffer();
|
StringBuffer hexString = new StringBuffer();
|
||||||
|
Loading…
Reference in New Issue
Block a user