From f03ac5e4d09e144c980f32bd09b1f943204a46e2 Mon Sep 17 00:00:00 2001 From: Ender's Games Date: Tue, 2 Oct 2018 09:50:44 -0400 Subject: [PATCH] Provide Toast messages with app context --- .../src/main/java/com/reicast/emulator/emu/GL2JNIView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GL2JNIView.java b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GL2JNIView.java index beb192c26..5bd0beb50 100644 --- a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GL2JNIView.java +++ b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GL2JNIView.java @@ -638,7 +638,7 @@ public class GL2JNIView extends GLSurfaceView handler.post(new Runnable() { public void run() { Log.d(context.getPackageName(), msg); - Toast.makeText(context, msg, Toast.LENGTH_SHORT).show(); + Toast.makeText(context.getApplicationContext(), msg, Toast.LENGTH_SHORT).show(); } }); }