Skip to content

Commit

Permalink
7.0.5
Browse files Browse the repository at this point in the history
- 使用新方法获取 ViewBinding 对象;
- BaseApp.log(...) 支持 object... 写法;
- 修复 log(...) 传入普通文本时以集合显示的问题;
  • Loading branch information
kongzue committed Nov 27, 2024
1 parent 6a2013e commit 2f24d8b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.kongzue.baseframeworkdemo"
minSdkVersion 15
targetSdkVersion 30
versionCode 140
versionName "7.0.4"
versionCode 141
versionName "7.0.5"
}
buildTypes {
release {
Expand Down
4 changes: 2 additions & 2 deletions baseframework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 34
versionCode 140
versionName "7.0.4.1"
versionCode 141
versionName "7.0.5"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ protected void setTranslucentStatus(boolean on) {
setStatusBarDarkIconInFlyme(getWindow(), darkStatusBarThemeValue);
}
Window window = getWindow();
if (window == null) return;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
| WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public BaseApp<YourApp> setOnSDKInitializedCallBack(OnSDKInitializedCallBack onS
return this;
}

public void log(final Object obj) {
public void log(final Object... obj) {
DebugLogG.LogI(obj);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class DebugLogG {
private static FileWriter logWriter;

public static void LogI(Object... obj) {
LogI(obj, false);
LogI(obj != null && obj.length == 1 ? obj[0] : obj, false);
}

public static void LogI(Object obj, boolean showStack) {
Expand Down

0 comments on commit 2f24d8b

Please sign in to comment.