|
|
@@ -2,6 +2,7 @@ package kr.co.zumo.app.lifeplus.helper;
|
|
|
|
|
|
import android.animation.Animator;
|
|
|
import android.animation.ObjectAnimator;
|
|
|
+import android.annotation.SuppressLint;
|
|
|
import android.app.Activity;
|
|
|
import android.graphics.drawable.StateListDrawable;
|
|
|
import android.support.annotation.IntRange;
|
|
|
@@ -43,13 +44,20 @@ public class ActionBarHelper extends Helper {
|
|
|
|
|
|
private static final int APP_BAR_LAYOUT_SCROLL_PARAM = AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL | AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS; // | AppBarLayout.LayoutParams.SCROLL_FLAG_SNAP;
|
|
|
|
|
|
- private Activity activity;
|
|
|
private ActionBar actionBar;
|
|
|
+ @SuppressLint("StaticFieldLeak")
|
|
|
+ private Activity activity;
|
|
|
+ @SuppressLint("StaticFieldLeak")
|
|
|
private AppBarLayout appBarLayout;
|
|
|
+ @SuppressLint("StaticFieldLeak")
|
|
|
private ConstraintLayout container;
|
|
|
+ @SuppressLint("StaticFieldLeak")
|
|
|
private Toolbar toolbar;
|
|
|
+ @SuppressLint("StaticFieldLeak")
|
|
|
private ProgressBar progressBar;
|
|
|
+ @SuppressLint("StaticFieldLeak")
|
|
|
private ConstraintLayout layoutCategoryTab;
|
|
|
+ @SuppressLint("StaticFieldLeak")
|
|
|
private ConstraintLayout categoryMainTab;
|
|
|
|
|
|
|
|
|
@@ -323,7 +331,7 @@ public class ActionBarHelper extends Helper {
|
|
|
/**
|
|
|
* 카테고리 탭 감추기
|
|
|
*/
|
|
|
- public void cloaseCategoryTab() {
|
|
|
+ public void closeCategoryTab() {
|
|
|
if (builder.isVisibleCategory && navigationBar.isArrowOpened()) {
|
|
|
navigationBar.toggleArrow();
|
|
|
setCategoryTabVisible(false);
|
|
|
@@ -531,9 +539,13 @@ public class ActionBarHelper extends Helper {
|
|
|
|
|
|
scrollListener = null;
|
|
|
titleClickListener = null;
|
|
|
-
|
|
|
actionBar = null;
|
|
|
builder = null;
|
|
|
-
|
|
|
+ activity = null;
|
|
|
+ container = null;
|
|
|
+ toolbar = null;
|
|
|
+ progressBar = null;
|
|
|
+ layoutCategoryTab = null;
|
|
|
+ categoryMainTab = null;
|
|
|
}
|
|
|
}
|