show error bug fix
This commit is contained in:
parent
868222d872
commit
b2ae67ba39
1 changed files with 4 additions and 2 deletions
|
@ -14,6 +14,8 @@ import android.graphics.drawable.Drawable;
|
|||
import android.graphics.drawable.GradientDrawable;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.Spanned;
|
||||
import android.text.TextUtils;
|
||||
|
@ -487,10 +489,10 @@ public class MenuBuilder {
|
|||
}
|
||||
|
||||
private void showToastMessage(final String str) {
|
||||
app.runInUIThread(new Runnable() {
|
||||
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Toast.makeText(view.getContext(), str, Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(mapActivity.getBaseContext(), str, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue