From ecfb9f8c5b74536277946b779b549bfffc5284db Mon Sep 17 00:00:00 2001 From: yikes Date: Mon, 22 May 2023 16:39:19 +0200 Subject: [PATCH] Updated version -> 1.3.0 -> Fixed bugs --- .idea/misc.xml | 1 - multi-sliding-up-panel/build.gradle | 2 +- .../java/com/realgear/multislidinguppanel/BasePanelView.java | 4 ++++ .../multislidinguppanel/MultiSlidingUpPanelLayout.java | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 9f71c83..773fe0f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/multi-sliding-up-panel/build.gradle b/multi-sliding-up-panel/build.gradle index fb03465..602bf6b 100644 --- a/multi-sliding-up-panel/build.gradle +++ b/multi-sliding-up-panel/build.gradle @@ -47,7 +47,7 @@ afterEvaluate { groupId = "com.realgear" artifactId = "multi-sliding-up-panel" - version = "1.2.9" + version = "1.3.0" } } } diff --git a/multi-sliding-up-panel/src/main/java/com/realgear/multislidinguppanel/BasePanelView.java b/multi-sliding-up-panel/src/main/java/com/realgear/multislidinguppanel/BasePanelView.java index ca28b82..4183df5 100644 --- a/multi-sliding-up-panel/src/main/java/com/realgear/multislidinguppanel/BasePanelView.java +++ b/multi-sliding-up-panel/src/main/java/com/realgear/multislidinguppanel/BasePanelView.java @@ -5,6 +5,7 @@ import android.os.Parcel; import android.os.Parcelable; import android.util.DisplayMetrics; +import android.util.Log; import android.util.TypedValue; import android.view.View; import android.view.WindowManager; @@ -112,6 +113,9 @@ public int getPanelTopByPanelState(int panelState) { case MultiSlidingUpPanelLayout.EXPANDED: return 0; + case MultiSlidingUpPanelLayout.HIDDEN: + return this.getPanelExpandedHeight(); + default: return this.getPanelExpandedHeightOffset(); } diff --git a/multi-sliding-up-panel/src/main/java/com/realgear/multislidinguppanel/MultiSlidingUpPanelLayout.java b/multi-sliding-up-panel/src/main/java/com/realgear/multislidinguppanel/MultiSlidingUpPanelLayout.java index 7aebdb5..0309df1 100644 --- a/multi-sliding-up-panel/src/main/java/com/realgear/multislidinguppanel/MultiSlidingUpPanelLayout.java +++ b/multi-sliding-up-panel/src/main/java/com/realgear/multislidinguppanel/MultiSlidingUpPanelLayout.java @@ -6,6 +6,7 @@ import android.os.Parcel; import android.os.Parcelable; import android.util.AttributeSet; +import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup;