Provide Toast messages with app context

This commit is contained in:
Ender's Games 2018-10-02 09:50:44 -04:00
parent edc8617d69
commit f03ac5e4d0
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
});
}