Skip to content

Commit 7d8e103

Browse files
committed
see 01/27 log
1 parent 6f864ec commit 7d8e103

File tree

11 files changed

+26
-20
lines changed

11 files changed

+26
-20
lines changed

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.12.0-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.12.1-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 ptoject helps you a lot, and you would like to support this ptoject's fu
4141

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

44-
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.12.0-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.12.1-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

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

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ dependencies {
6767
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanary_version"
6868
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanary_version"
6969

70-
// implementation 'com.blankj:utilcode:1.12.0'
70+
// implementation 'com.blankj:utilcode:1.12.1'
7171
}
7272

7373

app/src/main/java/com/blankj/androidutilcode/feature/core/permission/PermissionActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public class PermissionActivity extends BaseBackActivity {
3131

3232
TextView tvAboutPermission;
33-
String permissions;
33+
String permissions;
3434

3535
public static void start(Context context) {
3636
Intent starter = new Intent(context, PermissionActivity.class);

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ ext {
3232
min_sdk_version = 14
3333
target_sdk_version = 23
3434

35-
version_code = 1_012_000
36-
version_name = '1.12.0'// E.g 1.9.72 == 1,009,072
35+
version_code = 1_012_001
36+
version_name = '1.12.1'// E.g 1.9.72 == 1,009,072
3737

3838
// App dependencies
3939
support_version = '26.1.0'

update_log.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* 18/01/27 修复 PermissionUtils 某些机型闪烁问题,发布 1.12.1
12
* 18/01/17 完善 ReflectUtils 及 单元测试,发布 1.12.0 版本
23
* 18/01/16 完善 ReflectUtils 及 单元测试
34
* 18/01/15 完善 ReflectUtils 及 单元测试

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-
compile 'com.blankj:utilcode:1.12.0'
5+
compile 'com.blankj:utilcode:1.12.1'
66
```
77

88

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-
compile 'com.blankj:utilcode:1.12.0'
5+
compile 'com.blankj:utilcode:1.12.1'
66
```
77

88

utilcode/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
<application>
55
<activity
6-
android:taskAffinity="com.blankj.utilcode.util.PermissionUtils.PermissionActivity"
76
android:name=".util.PermissionUtils$PermissionActivity"
87
android:configChanges="orientation|keyboardHidden|screenSize"
8+
android:theme="@style/ActivityTranslucent"
99
android:windowSoftInputMode="stateHidden|stateAlwaysHidden" />
1010
</application>
1111
</manifest>

utilcode/src/main/java/com/blankj/utilcode/util/PermissionUtils.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
import android.content.Context;
55
import android.content.Intent;
66
import android.content.pm.PackageManager;
7-
import android.graphics.Color;
87
import android.net.Uri;
98
import android.os.Build;
109
import android.os.Bundle;
1110
import android.support.annotation.NonNull;
1211
import android.support.annotation.Nullable;
1312
import android.support.annotation.RequiresApi;
1413
import android.support.v4.content.ContextCompat;
15-
import android.view.View;
16-
import android.view.Window;
1714

1815
import com.blankj.utilcode.constant.PermissionConstants;
1916
import com.blankj.utilcode.util.PermissionUtils.OnRationaleListener.ShouldRequest;
@@ -291,15 +288,7 @@ public static void start(final Context context) {
291288
protected void onCreate(@Nullable Bundle savedInstanceState) {
292289
if (sInstance.mThemeCallback != null) {
293290
sInstance.mThemeCallback.onActivityCreate(this);
294-
} else {
295-
Window window = getWindow();
296-
window.setBackgroundDrawable(null);
297-
int option = View.SYSTEM_UI_FLAG_LAYOUT_STABLE
298-
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
299-
window.getDecorView().setSystemUiVisibility(option);
300-
window.setStatusBarColor(Color.TRANSPARENT);
301291
}
302-
303292
super.onCreate(savedInstanceState);
304293

305294
if (sInstance.rationale(this)) {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<style name="ActivityTranslucent">
5+
<item name="android:windowBackground">@android:color/transparent</item>
6+
<item name="android:colorBackgroundCacheHint">@null</item>
7+
<item name="android:windowIsTranslucent">true</item>
8+
<item name="android:windowNoTitle">true</item>
9+
<item name="android:windowContentOverlay">@null</item>
10+
<item name="android:activityOpenEnterAnimation">@null</item>
11+
<item name="android:activityOpenExitAnimation">@null</item>
12+
<item name="android:activityCloseEnterAnimation">@null</item>
13+
<item name="android:activityCloseExitAnimation">@null</item>
14+
<item name="android:statusBarColor">@android:color/transparent</item>
15+
</style>
16+
</resources>

0 commit comments

Comments
 (0)