Skip to content

Commit

Permalink
Improve Pulse
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Jun 17, 2024
1 parent 9795c29 commit 9f86527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,8 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
if (PulseControllerImpl.hasInstance()) {
//log(TAG + "Keyguard is showing: " + param.args[0]);
PulseControllerImpl.getInstance().setKeyguardShowing((boolean) param.args[0]);
if (VisualizerView.getInstance() != null && DWallpaperEnabled) {
VisualizerView.getInstance().bringToFront();
VisualizerView.getInstance().requestLayout();
}
VisualizerView.getInstance().bringToFront();
VisualizerView.getInstance().requestLayout();
updateLockscreenIcons();
}
}
Expand Down Expand Up @@ -279,6 +277,7 @@ private void updateLockscreenIcons() {
mEndButton.bringToFront();
mEndButton.requestLayout();
}
mKeyguardBottomArea.bringToFront();
mKeyguardBottomArea.requestLayout();
}
private void onPrimaryMetadataOrStateChanged(int state) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,26 +182,6 @@ private void updatePulseVisibility() {
boolean allowNavPulse = vv != null && vv.isAttached()
&& mNavPulseEnabled && !mKeyguardShowing && !mDozing;

/*if (mKeyguardGoingAway) {
detachPulseFrom(vv, allowNavPulse /*keep linked*//*);
} else if (allowNavPulse) {
detachPulseFrom(vv, allowNavPulse /*keep linked*//*);
attachPulseTo(mNavBar);
} else if (allowLsPulse) {
detachPulseFrom(mNavBar, allowLsPulse /*keep linked*//*);
if (mAmbPulseEnabled) detachPulseFrom(mAodRootLayout, allowLsPulse /*keep linked*//*);
attachPulseTo(vv);
} else if (allowAmbPulse) {
detachPulseFrom(mNavBar, allowAmbPulse /*keep linked*//*);
if (mLsPulseEnabled) detachPulseFrom(vv, allowAmbPulse /*keep linked*//*);
attachPulseTo(mAodRootLayout);
} else {
detachPulseFrom(mNavBar, false /*keep linked*//*);
detachPulseFrom(mAodRootLayout, false /*keep linked*//*);
detachPulseFrom(mKeyguardLayout, false /*keep linked*//*);
detachPulseFrom(vv, false /*keep linked*//*);
}*/

if (mKeyguardGoingAway) {
detachPulseFrom(vv, allowNavPulse /*keep linked*/);
} else if (allowNavPulse) {
Expand All @@ -218,7 +198,6 @@ private void updatePulseVisibility() {
} else {
detachPulseFrom(mNavBar, false /*keep linked*/);
detachPulseFrom(mAodRootLayout, false /*keep linked*/);
//detachPulseFrom(mKeyguardLayout, false /*keep linked*/);
detachPulseFrom(vv, false /*keep linked*/);
}
}
Expand Down

0 comments on commit 9f86527

Please sign in to comment.