[Scummvm-git-logs] scummvm master -> dad5179e9d9ac70b7c682882af57a214ab6f27b9
antoniou79
a.antoniou79 at gmail.com
Thu Aug 5 10:29:01 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dad5179e9d ANDROID: Fix warning unchecked conversion
Commit: dad5179e9d9ac70b7c682882af57a214ab6f27b9
https://github.com/scummvm/scummvm/commit/dad5179e9d9ac70b7c682882af57a214ab6f27b9
Author: antoniou (a.antoniou79 at gmail.com)
Date: 2021-08-05T13:26:31+03:00
Commit Message:
ANDROID: Fix warning unchecked conversion
In CustomKeyboardView for mKeysDownCodesSet ArraySet
Also enable the option -Xlint:unchecked (within build.gradle) to show the unchecked conversion warnings on compile
Changed paths:
backends/platform/android/org/scummvm/scummvm/CustomKeyboardView.java
dists/android/build.gradle
diff --git a/backends/platform/android/org/scummvm/scummvm/CustomKeyboardView.java b/backends/platform/android/org/scummvm/scummvm/CustomKeyboardView.java
index 7ae8e27a14..e55dab9f80 100755
--- a/backends/platform/android/org/scummvm/scummvm/CustomKeyboardView.java
+++ b/backends/platform/android/org/scummvm/scummvm/CustomKeyboardView.java
@@ -203,7 +203,7 @@ public class CustomKeyboardView extends View implements View.OnClickListener {
private int mCurrentKey = NOT_A_KEY;
private int mDownKey = NOT_A_KEY;
- // New auxilliary set to keep track of any keys that were not released at the time of closing the keyboard
+ // New auxiliary set to keep track of any keys that were not released at the time of closing the keyboard
private ArraySet<Integer> mKeysDownCodesSet;
private long mLastKeyTime;
@@ -439,7 +439,7 @@ public class CustomKeyboardView extends View implements View.OnClickListener {
mAccessibilityManager = (AccessibilityManager) context.getSystemService(Context.ACCESSIBILITY_SERVICE);
mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
- mKeysDownCodesSet = new ArraySet();
+ mKeysDownCodesSet = new ArraySet<>();
resetMultiTap();
}
diff --git a/dists/android/build.gradle b/dists/android/build.gradle
index cd5fb70c4a..a8160d9949 100644
--- a/dists/android/build.gradle
+++ b/dists/android/build.gradle
@@ -17,7 +17,7 @@ dependencies {
// Enable to see use of deprecated API
tasks.withType(JavaCompile) {
- options.compilerArgs << "-Xlint:deprecation"
+ options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
apply plugin: 'com.android.application'
More information about the Scummvm-git-logs
mailing list