Prevent crash

pull/160/head
M66B 5 years ago
parent 2f6c0d37d6
commit 8073cf425e

@ -10,7 +10,7 @@ import android.widget.Toast;
public class ToastEx extends Toast { public class ToastEx extends Toast {
public ToastEx(Context context) { public ToastEx(Context context) {
super(context); super(context.getApplicationContext());
} }
public static ToastEx makeText(Context context, int resId, int duration) throws Resources.NotFoundException { public static ToastEx makeText(Context context, int resId, int duration) throws Resources.NotFoundException {

Loading…
Cancel
Save