Prevent crash

This commit is contained in:
M66B 2019-08-09 16:41:36 +02:00
parent 2f6c0d37d6
commit 8073cf425e
1 changed files with 1 additions and 1 deletions

View File

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