package net.bingyan.weatherx.util;

import android.widget.Toast;

/**
 * Created by 2bab on 14-10-7.
 * Toast 封装
 */
public class ToastUtil {

    private static String latestContent = "";

    public static void toast(String content){
        if (!latestContent.equals(content)) {
            Toast.makeText(WeatherXApplication.getContext(), content, Toast.LENGTH_SHORT).show();
            latestContent = content;
        }
    }

}
