Skip to content

Commit

Permalink
1.toast去掉单例 修正重复错误
Browse files Browse the repository at this point in the history
  • Loading branch information
firelion0725 committed Jun 22, 2018
1 parent 4313553 commit 62fa581
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions utils/src/main/java/com/leo/utils/ToastUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.widget.Toast;

/**
Expand Down Expand Up @@ -39,11 +38,7 @@ private static void showToast(Context context, String message, int duration, boo
if (!isQueen) {
cancelToast();
}
if (null == toast) {
toast = Toast.makeText(context, message, duration);
}

Log.i(TAG, "show");
toast = Toast.makeText(context, message, duration);

handler.postDelayed(new Runnable() {
@Override
Expand Down

0 comments on commit 62fa581

Please sign in to comment.