Skip to content

Commit

Permalink
Misc fixes for Header Clock
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Apr 25, 2024
1 parent 237fba7 commit b5132aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/makeBetaRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Upload Xposed Artifact to Actions
uses: actions/[email protected]
with:
name: OxygenCustomizer.apk
name: OxygenCustomizer.zip
path: app/build/outputs/apk/release/*.apk

- name: Oxygen Customizer Binary Release
Expand All @@ -66,7 +66,7 @@ jobs:
allowUpdates: true
replacesArtifacts: true
draft: false
artifacts: 'output/*.*'
artifacts: 'app/build/outputs/apk/release/*.apk'

- name: Version Bump Commit
uses: github-actions-x/[email protected]
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
<!-- OmniJaws -->
<uses-permission android:name="it.dhd.oxygencustomizer.READ_WEATHER" />

<!-- Notifications -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<!-- Install New APK -->
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,15 @@ protected void afterHookedMethod(MethodHookParam param) {
hookAllMethods(OplusClockExImpl, "setTextWithRedOneStyleInternal", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) {
TextView textView = (TextView) param.args[0];
if (showHeaderClock || stockClockRedStyle == 1 ) {
param.setResult(null);
if (showHeaderClock) textView.setTextColor(Color.TRANSPARENT); // Force transparent if custom clock is enabled
return;
}

if (stockClockRedStyle == 2 || stockClockRedStyle == 3) {
CharSequence charSequence = (CharSequence) param.args[1];
TextView textView = (TextView) param.args[0];
StringBuilder sb = new StringBuilder(charSequence);
int length = sb.length();
for (int i = 0; i < length; i++) {
Expand Down Expand Up @@ -370,10 +371,8 @@ protected void beforeHookedMethod(MethodHookParam param) {
hookAllMethods(QuickStatusBarHeader, "updateResources", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
updateStockPrefs();
setupChips();
updateChips();
updateClockView();
updateChips();
}
});

Expand Down

0 comments on commit b5132aa

Please sign in to comment.