Skip to content

Commit

Permalink
Fix status bar text color
Browse files Browse the repository at this point in the history
  • Loading branch information
zehuanli committed May 19, 2024
1 parent 8bc9995 commit aac403b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<s>This module is archived as I'm no longer using OOS, after encountering a severe bug that forced me to factory reset.</s>
Well I had to switch back to OOS 14 for a while before a custom ROM is available.
Well I had to switch back to OOS 14 for a while before a custom ROM is available.

# Description
基于Xposed,去除一加系统锁屏,AOD和状态栏时钟红色字体样式的模块。
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ android {
defaultConfig {
applicationId "com.upbad.apps.opgo"
//noinspection ExpiredTargetSdkVersion
minSdkVersion 21
minSdkVersion 23
//noinspection OldTargetApi
targetSdkVersion 34
versionCode 4
versionName "4.0"
versionCode 5
versionName "4.1"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.upbad.apps.opgo.plugin.systemui;

import android.text.SpannableString;
import android.text.SpannableStringBuilder;
import android.widget.TextView;

import com.upbad.apps.opgo.plugin.IPlugin;

Expand All @@ -23,7 +21,7 @@ public void hook(XC_LoadPackage.LoadPackageParam lpparam, ClassLoader classLoade
@Override
protected void beforeHookedMethod(MethodHookParam param) {
XposedHelpers.callMethod(param.args[0], "setText", param.args[1]);
param.setResult(true);
param.setResult(XposedHelpers.getBooleanField(param.thisObject, "mIsDateTimePanel"));
}
});

Expand Down

0 comments on commit aac403b

Please sign in to comment.