diff --git a/app/src/main/java/cc/niushuai/project/devcontrol/base/util/ToastUtil.java b/app/src/main/java/cc/niushuai/project/devcontrol/base/util/ToastUtil.java index b0847e2..b28bc82 100644 --- a/app/src/main/java/cc/niushuai/project/devcontrol/base/util/ToastUtil.java +++ b/app/src/main/java/cc/niushuai/project/devcontrol/base/util/ToastUtil.java @@ -6,6 +6,8 @@ import android.widget.Toast; public class ToastUtil { public static void show(Activity activity, String msg) { - Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show(); + Toast toast = Toast.makeText(activity, msg, Toast.LENGTH_SHORT); + toast.setText(msg); + toast.show(); } }