Skip to content

Commit 81c0ec2

Browse files
committed
see 12/18 log
1 parent a06c0d5 commit 81c0ec2

File tree

14 files changed

+33
-20
lines changed

14 files changed

+33
-20
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* `18/12/19` [fix] ToastUtils multi show crash when run API 25. Publish v1.22.4.
2+
* `18/12/18` [fix] ImageUtils recycle ret equals src. Publish v1.22.3.
13
* `18/12/17` [fix] Utils$FileProvider4UtilCode not found. Publish v1.22.3.
24
* `18/12/17` [fix] ToastUtils leak. Publish v1.22.2.
35
* `18/12/09` [add] Component for the project.

README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.3-brightgreen.svg
44+
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.4-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If this project helps you a lot and you want to support the project's developmen
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.3-brightgreen.svg
44+
[aucSvg]: https://img.shields.io/badge/AndroidUtilCode-v1.22.4-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apiSvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

config.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ext {
55
compileSdkVersion = 27
66
minSdkVersion = 14
77
targetSdkVersion = 27
8-
versionCode = 1_022_003
9-
versionName = '1.22.3'// E.g. 1.9.72 => 1,009,072
8+
versionCode = 1_022_004
9+
versionName = '1.22.4'// E.g. 1.9.72 => 1,009,072
1010

1111
bus = [
1212
isDebug: false,

lib/base/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ dependencies {
1515
api dep.free_proguard
1616
api 'com.r0adkll:slidableactivity:2.0.5'
1717
compileOnly dep.leakcanary.android_no_op
18-
// api 'com.blankj:utilcode:1.22.3'
18+
// api 'com.blankj:utilcode:1.22.4'
1919
}

utilcode/README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gradle:
44
```groovy
5-
implementation 'com.blankj:utilcode:1.22.3'
5+
implementation 'com.blankj:utilcode:1.22.4'
66
```
77

88

utilcode/README-STATIC-BUS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ apply plugin: "com.blankj.bus"
2727
给 base 模块添加 [AndroidUtilCode](https://github.com/Blankj/AndroidUtilCode) 依赖:
2828

2929
```groovy
30-
api "com.blankj:utilcode:1.22.3"
30+
api "com.blankj:utilcode:1.22.4"
3131
```
3232

3333
比如 module0 中存在的 `Module0Activity.java`,我们通常都是在它内部写一个 `start` 函数来启动它,现在我们给它添加 `@BusUtils.Subscribe` 注解,并给注解的 `name` 赋唯一值,要注意,函数务必要 `public static` 哦:

utilcode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gradle:
44
```groovy
5-
implementation 'com.blankj:utilcode:1.22.3'
5+
implementation 'com.blankj:utilcode:1.22.4'
66
```
77

88

utilcode/lib/src/main/java/com/blankj/utilcode/util/BusUtils.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class BusUtils {
2525
private static final Object NULL = new Object();
2626
private static final Map<Object, String> BUSES = new ConcurrentHashMap<>();
2727

28-
public static <T> T post(String name, Object... objects) {
28+
public static <T> T post(final String name, final Object... objects) {
2929
if (name == null || name.length() == 0) return null;
3030
Object o = injectShell(name, objects);
3131
if (NULL.equals(o)) {
@@ -35,7 +35,18 @@ public static <T> T post(String name, Object... objects) {
3535
return (T) o;
3636
}
3737

38-
private static Object injectShell(String name, Object[] objects) {
38+
39+
public static void register(final Object bus) {
40+
41+
}
42+
43+
public static void unregister(final Object bus) {
44+
45+
}
46+
47+
48+
49+
private static Object injectShell(final String name, final Object[] objects) {
3950
return NULL;
4051
}
4152

utilcode/lib/src/main/java/com/blankj/utilcode/util/ToastUtils.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,16 +399,16 @@ static class SafeHandler extends Handler {
399399

400400
@Override
401401
public void handleMessage(Message msg) {
402-
try {
403-
impl.handleMessage(msg);
404-
} catch (Exception e) {
405-
Log.e("ToastUtils", e.toString());
406-
}
402+
impl.handleMessage(msg);
407403
}
408404

409405
@Override
410406
public void dispatchMessage(Message msg) {
411-
impl.dispatchMessage(msg);
407+
try {
408+
impl.dispatchMessage(msg);
409+
} catch (Exception e) {
410+
Log.e("ToastUtils", e.toString());
411+
}
412412
}
413413
}
414414
}

utilcode/lib/src/test/java/com/blankj/utilcode/util/TimeUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class TimeUtilsTest {
3636
private final Date tomorrowTimeDate = new Date(tomorrowTimeMillis);
3737
private final String tomorrowTimeString = defaultFormat.format(tomorrowTimeDate);
3838
private final String tomorrowTimeStringFormat = mFormat.format(tomorrowTimeDate);
39-
private final long delta = 8;// 允许误差8ms
39+
private final long delta = 10;// 允许误差 10ms
4040

4141
@Test
4242
public void millis2String() {

utilcode/pkg/src/main/res/layout/activity_adapt_close.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
88
android:background="@color/white"
9-
tools:context=".pkg.feature.core.adaptScreen.CloseAdaptActivity">
9+
tools:context=".feature.adaptScreen.CloseAdaptActivity">
1010

1111
<android.support.constraint.ConstraintLayout
1212
android:layout_width="match_parent"

utilcode/pkg/src/main/res/layout/activity_adapt_height.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
88
android:background="@color/white"
9-
tools:context=".pkg.feature.core.adaptScreen.HeightActivity">
9+
tools:context=".feature.adaptScreen.HeightActivity">
1010

1111
<android.support.constraint.ConstraintLayout
1212
android:layout_width="wrap_content"

utilcode/pkg/src/main/res/layout/activity_adapt_width.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
88
android:background="@color/white"
9-
tools:context=".pkg.feature.core.adaptScreen.WidthActivity">
9+
tools:context=".feature.adaptScreen.WidthActivity">
1010

1111
<android.support.constraint.ConstraintLayout
1212
android:layout_width="match_parent"

0 commit comments

Comments
 (0)