diff options
| author | HrX03 <dn.bianco03@gmail.com> | 2020-12-17 15:13:30 +0000 |
|---|---|---|
| committer | Kshitij Gupta <kshitijgm@gmail.com> | 2020-12-21 09:22:36 +0000 |
| commit | a0ef7a76bdc1ed8a1ec806c2dfcb95343dd6e0bb (patch) | |
| tree | 22e802ad57337a774a9e66d3c0c610e13584bee6 /AospPanel/src | |
| parent | 16af8ef1adfe2ae98aa1df6d9bbf350d755dd0a4 (diff) | |
[ @HrX03 - POSP ]
No idea what changed but it works so idc
Change-Id: Iaf9b76f8c4e95c3484c7672c169d76d540e46c14
Diffstat (limited to 'AospPanel/src')
| -rw-r--r-- | AospPanel/src/co/potatoproject/plugin/volume/aosp/VolumeDialogImpl.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/AospPanel/src/co/potatoproject/plugin/volume/aosp/VolumeDialogImpl.java b/AospPanel/src/co/potatoproject/plugin/volume/aosp/VolumeDialogImpl.java index 1a5f6c5..53873af 100644 --- a/AospPanel/src/co/potatoproject/plugin/volume/aosp/VolumeDialogImpl.java +++ b/AospPanel/src/co/potatoproject/plugin/volume/aosp/VolumeDialogImpl.java @@ -372,9 +372,9 @@ public class VolumeDialogImpl extends PanelSideAware implements VolumeDialog { internalInsetsInfo.setTouchableInsets(InternalInsetsInfo.TOUCHABLE_INSETS_REGION); View main = mDialog.findViewById(R.id.main); int[] mainLocation = new int[2]; - main.getLocationOnScreen(mainLocation); + main.getLocationInWindow(mainLocation); int[] dialogLocation = new int[2]; - mDialogView.getLocationOnScreen(dialogLocation); + mDialogView.getLocationInWindow(dialogLocation); internalInsetsInfo.touchableRegion.set(new Region( mainLocation[0], dialogLocation[1], @@ -928,6 +928,7 @@ public class VolumeDialogImpl extends PanelSideAware implements VolumeDialog { }, 50)); if (!isLandscape()) animator.translationX((mDialogView.getWidth() / 2.0f)*(isAudioPanelOnLeftSide() ? -1 : 1)); animator.start(); + mDialog.getViewTreeObserver().removeOnComputeInternalInsetsListener(mInsetsListener); checkODICaptionsTooltip(true); mController.notifyVisible(false); synchronized (mSafetyWarningLock) { |
