Commit 0b07aad3 by app_dev@sobot.com

sobot common 自定义吐司 长时间显示

parent 314742d3
......@@ -88,6 +88,23 @@ public class SobotToastUtil {
}
}
/**
* 自定义的土司
*
* @param context
* @param str
*/
public static void showCustomLongToast(Context context, String str) {
if (TextUtils.isEmpty(str)) {
return;
}
try {
SobotCustomToast.makeText(context, str, Toast.LENGTH_LONG).show();
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 自定义土司,显示固定时间,然后执行监听方法
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment