提交 cc8ede86 编写于 作者: B Blankj

see 01/31 log

上级 9710722b
......@@ -41,7 +41,7 @@
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.12.4-brightgreen.svg
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.12.5-brightgreen.svg
[auc]: https://github.com/Blankj/AndroidUtilCode
[apisvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
......
......@@ -41,7 +41,7 @@ If this ptoject helps you a lot, and you would like to support this ptoject's fu
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.12.4-brightgreen.svg
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.12.5-brightgreen.svg
[auc]: https://github.com/Blankj/AndroidUtilCode
[apisvg]: https://img.shields.io/badge/API-14+-brightgreen.svg
......
......@@ -67,7 +67,7 @@ dependencies {
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanary_version"
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanary_version"
// implementation 'com.blankj:utilcode:1.12.4'
// implementation 'com.blankj:utilcode:1.12.5'
}
......@@ -32,8 +32,8 @@ ext {
min_sdk_version = 14
target_sdk_version = 23
version_code = 1_012_004
version_name = '1.12.4'// E.g 1.9.72 => 1,009,072
version_code = 1_012_005
version_name = '1.12.5'// E.g 1.9.72 => 1,009,072
// App dependencies
support_version = '26.1.0'
......
* 18/01/31 修复 default 相关的逻辑错误,发布 1.12.4
* 18/01/31 修复 default 相关的逻辑错误,发布 1.12.4,修复 ToastUtils 在 kotlin 中转义失败,发布 1.12.5
* 18/01/28 修复 ToastUtils 默认样式问题,发布 1.12.2,新增 DeviceUtils#getSDKVersionName,发布 1.12.3
* 18/01/27 修复 PermissionUtils 某些机型闪烁问题,发布 1.12.1
* 18/01/17 完善 ReflectUtils 及 单元测试,发布 1.12.0 版本
......
......@@ -2,7 +2,7 @@
Gradle:
```groovy
compile 'com.blankj:utilcode:1.12.4'
compile 'com.blankj:utilcode:1.12.5'
```
......
......@@ -2,7 +2,7 @@
Gradle:
```groovy
compile 'com.blankj:utilcode:1.12.4'
compile 'com.blankj:utilcode:1.12.5'
```
......
......@@ -110,7 +110,11 @@ public final class ToastUtils {
* @param args 参数
*/
public static void showShort(@StringRes final int resId, final Object... args) {
show(resId, Toast.LENGTH_SHORT, args);
if (args != null && args.length == 0) {
show(resId, Toast.LENGTH_SHORT);
} else {
show(resId, Toast.LENGTH_SHORT, args);
}
}
/**
......@@ -120,7 +124,11 @@ public final class ToastUtils {
* @param args 参数
*/
public static void showShort(final String format, final Object... args) {
show(format, Toast.LENGTH_SHORT, args);
if (args != null && args.length == 0) {
show(format, Toast.LENGTH_SHORT);
} else {
show(format, Toast.LENGTH_SHORT, args);
}
}
/**
......@@ -148,7 +156,11 @@ public final class ToastUtils {
* @param args 参数
*/
public static void showLong(@StringRes final int resId, final Object... args) {
show(resId, Toast.LENGTH_LONG, args);
if (args != null && args.length == 0) {
show(resId, Toast.LENGTH_SHORT);
} else {
show(resId, Toast.LENGTH_LONG, args);
}
}
/**
......@@ -158,7 +170,11 @@ public final class ToastUtils {
* @param args 参数
*/
public static void showLong(final String format, final Object... args) {
show(format, Toast.LENGTH_LONG, args);
if (args != null && args.length == 0) {
show(format, Toast.LENGTH_SHORT);
} else {
show(format, Toast.LENGTH_LONG, args);
}
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册