Skip to content

Commit

Permalink
Remove useless classes
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed May 8, 2024
1 parent 0cbd838 commit 5deb876
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Th
} catch (Throwable t) {
OplusQSContainerImpl = findClass("com.oplusos.systemui.qs.OplusQSContainerImpl", lpparam.classLoader); // OOS 13
}
Class<?> QuickStatusBarHeader = null;
try {
QuickStatusBarHeader = findClass("com.oplus.systemui.qs.OplusQuickStatusBarHeader", lpparam.classLoader);;
} catch (Throwable ignored){}

try {
log(TAG + "Hooking");
Expand Down Expand Up @@ -168,22 +164,6 @@ protected void afterHookedMethod(MethodHookParam param) {

} catch (Throwable ignored) {}

try {
if (QuickStatusBarHeader != null) {
hookAllMethods(QuickStatusBarHeader, "onMeasure", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) {
View mDatePrivacyView = (View) getObjectField(param.thisObject, "mPrivacyContainer");
int mTopViewMeasureHeight = getIntField(param.thisObject, "mTopViewMeasureHeight");

if ((int) callMethod(mDatePrivacyView, "getMeasuredHeight") != mTopViewMeasureHeight) {
setObjectField(param.thisObject, "mTopViewMeasureHeight", callMethod(mDatePrivacyView, "getMeasuredHeight"));
callMethod(param.thisObject, "updateAnimators");
}
}
});
}
} catch (Throwable ignored) {}
}

@Override
Expand Down

0 comments on commit 5deb876

Please sign in to comment.