Skip to content

Commit

Permalink
Update HeaderClock onFractionUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Apr 21, 2024
1 parent 18f276d commit fee607e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 23 deletions.
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
/keystore
/keystore.properties
/keystore.properties
/hs_*
/replay_*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Oxygen Customizer

<div align="center">
<img src=".github/resources/banner.png" width="75%" alt="banner" />
<img src=".github/resources/banner.png" width="90%" alt="banner" />
</div>
<p align="center">
<a href="https://github.com/DHD2280/Oxygen-Customizer/releases"><img src="https://img.shields.io/github/v/release/DHD2280/Oxygen-Customizer?style=for-the-badge" alt="Release"></a>
Expand Down
4 changes: 3 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/build
/build
/debug
/release
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package it.dhd.oxygencustomizer.services;



import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.IBinder;
Expand All @@ -25,7 +26,7 @@ public class RootProvider extends RootService {
String TAG = getClass().getSimpleName();

static final String LSPD_DB_PATH = "/data/adb/lspd/config/modules_config.db";
static final String SQLITE_BIN = "/data/adb/modules/PixelXpert/sqlite3";
static final String SQLITE_BIN = "/data/adb/modules/OxygenCustomizer/sqlite3";

@Override
public IBinder onBind(@NonNull Intent intent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,22 @@
import static it.dhd.oxygencustomizer.xposed.utils.ViewHelper.loadLottieAnimationView;

import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.media.AudioManager;
import android.os.Build;
import android.os.Environment;
import android.os.UserManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import java.io.File;

import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.callbacks.XC_LoadPackage;
import it.dhd.oxygencustomizer.BuildConfig;
import it.dhd.oxygencustomizer.R;
import it.dhd.oxygencustomizer.utils.Constants;
import it.dhd.oxygencustomizer.xposed.XposedMods;
import it.dhd.oxygencustomizer.xposed.utils.ViewHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ protected void afterHookedMethod(MethodHookParam param) {
protected void afterHookedMethod(MethodHookParam param) {
if (!showHeaderClock) return;

if (getObjectField(param.thisObject, "mQsFooterClock") == null) return;

float f = (float) param.args[0];
Interpolator mAlphaAnimInterpolator = (Interpolator) getObjectField(param.thisObject, "mAlphaAnimInterpolator");
Interpolator mQsCoveredInterpolator = (Interpolator) getObjectField(param.thisObject, "mQsCoveredInterpolator");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
import java.util.concurrent.Executor;

import de.robv.android.xposed.XposedBridge;
import it.dhd.oxygencustomizer.BuildConfig;
import it.dhd.oxygencustomizer.xposed.utils.SystemUtils;
import it.dhd.oxygencustomizer.xposed.views.PulseView;
import it.dhd.oxygencustomizer.xposed.views.VisualizerView;

public class PulseControllerImpl {

public static final boolean DEBUG = true;
public static final boolean DEBUG = BuildConfig.DEBUG;
@SuppressLint("StaticFieldLeak")
private static PulseControllerImpl instance = null;
private final String STREAM_MUTE_CHANGED_ACTION = "android.media.STREAM_MUTE_CHANGED_ACTION";
Expand Down

0 comments on commit fee607e

Please sign in to comment.