@@ -68,7 +68,7 @@ private void initView(AttributeSet attributeSet) {
6868 inflatedUnderLayout = under .inflate ();
6969 inflatedOverLayout = over .inflate ();
7070 } else {
71- Log .d (TAG , "Layout inflater null" );
71+ Log .e (TAG , "Layout inflater null" );
7272 }
7373 initListeners ();
7474 setupListeners ();
@@ -88,21 +88,19 @@ private void initListeners() {
8888 overLayoutEventListener = (view ) -> {
8989 };
9090 animationUpdateListeners = () -> {
91- Log .d (TAG , "Max Pulled" );
9291 };
9392 }
9493
9594 private void setupAnimations (String animationType ) {
9695 int animType = Integer .parseInt (animationType );
9796 switch (animType ) {
9897 case 1 :
99- Log .d (TAG , "Spring Animation" );
10098 SpringAnimationUtil springAnimationUtil = new SpringAnimationUtil (context , inflatedOverLayout ,
101- revealViewPercentageRight , inflatedUnderLayout . findViewById ( R . id . revealed_view_right ) ,
99+ revealViewPercentageRight , inflatedUnderLayout ,
102100 scaleHiddenView , maxMovementFactor , this );
103101 SpringAnimation springAnimation = springAnimationUtil .getxAnimation ();
104102 if (springAnimation == null )
105- Log .wtf (TAG , "SPringanimation is null" );
103+ Log .wtf (TAG , "SpringAnimation is null" );
106104 springReverseAnim = springAnimationUtil .getReverseXAnim ();
107105 animation = springAnimation ;
108106 reverseAnimation = springReverseAnim ;
@@ -121,7 +119,6 @@ private void setupAnimations(String animationType) {
121119
122120 private void loadPreferencesFromAttributes (AttributeSet attributeSet ) {
123121 if (attributeSet != null ) {
124- Log .d (TAG , "Attribute set not null" );
125122 TypedArray typedArray = getContext ().obtainStyledAttributes (attributeSet , R .styleable .HiddenLayoutView );
126123 try {
127124 layout_over = typedArray .getResourceId (R .styleable .HiddenLayoutView_layout_over , R .layout .over_layout_default );
@@ -132,14 +129,11 @@ private void loadPreferencesFromAttributes(AttributeSet attributeSet) {
132129 maxMovementFactor = typedArray .getFloat (R .styleable .HiddenLayoutView_maxMovementFactorForSpring , 2 );
133130 flingFriction = typedArray .getFloat (R .styleable .HiddenLayoutView_flingFriction , 0.8f );
134131 flingFrictionReverse = typedArray .getFloat (R .styleable .HiddenLayoutView_flingFrictionReverse , 0.001f );
135- Log .d (TAG , "Animation typed Array " + animationType );
136132 if (animationType == null || animationType .equals ("" ))
137133 animationType = "2" ;
138134 } finally {
139135 typedArray .recycle ();
140136 }
141- } else {
142- Log .d (TAG , "Attribute set is null " );
143137 }
144138 }
145139
@@ -227,7 +221,6 @@ public float getFlingFrictionReverse() {
227221
228222 @ OnLifecycleEvent (Lifecycle .Event .ON_PAUSE )
229223 private void closeOpenHiddenView () {
230- Log .i (TAG , "Closing View" );
231224 Handler handler = new Handler ();
232225 handler .postDelayed (new Runnable () {
233226 @ Override
0 commit comments