[Scummvm-git-logs] scummvm branch-2-7-0-android -> 8cb9cb74dc0442a1e4236a32d1bf99925d907639

antoniou79 noreply at scummvm.org
Wed Mar 22 20:22:13 UTC 2023


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:
8cb9cb74dc ANDROID: Fix another deprecated Handler() usage


Commit: 8cb9cb74dc0442a1e4236a32d1bf99925d907639
    https://github.com/scummvm/scummvm/commit/8cb9cb74dc0442a1e4236a32d1bf99925d907639
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2023-03-22T22:22:00+02:00

Commit Message:
ANDROID: Fix another deprecated Handler() usage

Changed paths:
    backends/platform/android/org/scummvm/scummvm/ScummVMEventsModern.java


diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVMEventsModern.java b/backends/platform/android/org/scummvm/scummvm/ScummVMEventsModern.java
index ed57fe50934..b614c6aef3a 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVMEventsModern.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVMEventsModern.java
@@ -2,6 +2,7 @@ package org.scummvm.scummvm;
 
 import android.content.Context;
 import android.os.Handler;
+import android.os.Looper;
 import android.os.Message;
 import android.util.Log;
 import android.view.MotionEvent;
@@ -33,6 +34,7 @@ public class ScummVMEventsModern extends ScummVMEventsBase {
 		private final WeakReference<ScummVMEventsModern> mListenerReference;
 
 		public ScummVMEventsModernHandler(ScummVMEventsModern listener) {
+			super(Looper.getMainLooper());
 			mListenerReference = new WeakReference<>(listener);
 		}
 




More information about the Scummvm-git-logs mailing list