diff --git a/Phoenix/src/main/java/com/yalantis/phoenix/PullToRefreshView.java b/Phoenix/src/main/java/com/yalantis/phoenix/PullToRefreshView.java index 5dd66f0..9cd7dad 100644 --- a/Phoenix/src/main/java/com/yalantis/phoenix/PullToRefreshView.java +++ b/Phoenix/src/main/java/com/yalantis/phoenix/PullToRefreshView.java @@ -74,7 +74,7 @@ public boolean isRefreshing() { private int mTargetPaddingRight; private int mTargetPaddingLeft; - private int finishRefreshToPauseDuration = 0; + private int finishRefreshToPauseDuration; public PullToRefreshView(Context context) { this(context, null); diff --git a/Phoenix/src/main/java/com/yalantis/phoenix/refresh_view/SunRefreshView.java b/Phoenix/src/main/java/com/yalantis/phoenix/refresh_view/SunRefreshView.java index 89313f7..d2c52a9 100644 --- a/Phoenix/src/main/java/com/yalantis/phoenix/refresh_view/SunRefreshView.java +++ b/Phoenix/src/main/java/com/yalantis/phoenix/refresh_view/SunRefreshView.java @@ -58,14 +58,14 @@ public class SunRefreshView extends BaseRefreshView implements Animatable { private float mSunLeftOffset; private float mSunTopOffset; - private float mPercent = 0.0f; - private float mRotate = 0.0f; + private float mPercent; + private float mRotate; private Bitmap mSky; private Bitmap mSun; private Bitmap mTown; - private boolean isRefreshing = false; + private boolean isRefreshing; public SunRefreshView(Context context, final PullToRefreshView parent) { super(context, parent); diff --git a/Phoenix/src/main/java/com/yalantis/phoenix/util/Logger.java b/Phoenix/src/main/java/com/yalantis/phoenix/util/Logger.java index a6dcffe..51a6e11 100644 --- a/Phoenix/src/main/java/com/yalantis/phoenix/util/Logger.java +++ b/Phoenix/src/main/java/com/yalantis/phoenix/util/Logger.java @@ -10,8 +10,8 @@ public final class Logger { * Set true or false if you want read logs or not */ private static boolean logEnabled_d = true; - private static boolean logEnabled_i = false; - private static boolean logEnabled_e = false; + private static boolean logEnabled_i; + private static boolean logEnabled_e; private Logger () {} diff --git a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/PullToRefreshLayoutTellH/PullToRefreshLayout.java b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/PullToRefreshLayoutTellH/PullToRefreshLayout.java index 0e4f5f2..0f45796 100644 --- a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/PullToRefreshLayoutTellH/PullToRefreshLayout.java +++ b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/PullToRefreshLayoutTellH/PullToRefreshLayout.java @@ -70,7 +70,7 @@ public class PullToRefreshLayout extends ViewGroup { private int mTargetPaddingBottom; private int mTargetPaddingRight; private int mTargetPaddingLeft; - private int finishRefreshToPauseDuration = 0; + private int finishRefreshToPauseDuration; private int mHeaderViewIndex; public PullToRefreshLayout(Context context) { diff --git a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/WaterDropListView/WaterDropListView.java b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/WaterDropListView/WaterDropListView.java index 87df9da..4903dca 100644 --- a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/WaterDropListView/WaterDropListView.java +++ b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/WaterDropListView/WaterDropListView.java @@ -40,14 +40,14 @@ public class WaterDropListView extends ListView implements OnScrollListener,Wate private WaterDropListViewFooter mFooterView; private boolean mEnablePullLoad; private boolean mPullLoading; - private boolean mIsFooterReady = false; + private boolean mIsFooterReady; // total list items, used to detect is at the bottom of listview. private int mTotalItemCount; // for mScroller, scroll back from header or footer. private ScrollBack mScrollBack; - private boolean isTouchingScreen = false;//手指是否触摸屏幕 + private boolean isTouchingScreen;//手指是否触摸屏幕 // private int mStretchHeight; // view开始变形的高度 // private int mReadyHeight; // view由stretch变成ready的高度 diff --git a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/XListView/LoadView.java b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/XListView/LoadView.java index 7e3cab3..1a7da62 100644 --- a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/XListView/LoadView.java +++ b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/XListView/LoadView.java @@ -18,7 +18,7 @@ * Created by limxing on 16/1/7. */ public class LoadView extends ImageView { - private float degrees = 0f; + private float degrees; private Matrix max; private int width; private int height; diff --git a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/XListView/XListView.java b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/XListView/XListView.java index 339687d..b295434 100644 --- a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/XListView/XListView.java +++ b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/XListView/XListView.java @@ -47,13 +47,13 @@ public boolean isPullRefreshing() { return mPullRefreshing; } - private boolean mPullRefreshing = false; // is refreashing. + private boolean mPullRefreshing; // is refreashing. // -- footer view private XListViewFooter mFooterView; private boolean mEnablePullLoad; private boolean mPullLoading; - private boolean mIsFooterReady = false; + private boolean mIsFooterReady; // total list items, used to detect is at the bottom of listview. private int mTotalItemCount; diff --git a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/util/Logger.java b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/util/Logger.java index 8bc60f6..ac7123c 100644 --- a/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/util/Logger.java +++ b/app/src/main/java/com/tellh/android_pulltorefreshlibrary_collection/util/Logger.java @@ -10,8 +10,8 @@ public final class Logger { * Set true or false if you want read logs or not */ private static boolean logEnabled_d = true; - private static boolean logEnabled_i = false; - private static boolean logEnabled_e = false; + private static boolean logEnabled_i; + private static boolean logEnabled_e; private Logger() {} diff --git a/jellyrefresh/src/main/java/uk/co/imallan/jellyrefresh/JellyView.java b/jellyrefresh/src/main/java/uk/co/imallan/jellyrefresh/JellyView.java index bb59d11..898a688 100644 --- a/jellyrefresh/src/main/java/uk/co/imallan/jellyrefresh/JellyView.java +++ b/jellyrefresh/src/main/java/uk/co/imallan/jellyrefresh/JellyView.java @@ -18,7 +18,7 @@ public class JellyView extends View { Paint paint; - private int minimumHeight = 0; + private int minimumHeight; private int jellyHeight; diff --git a/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/MaterialProgressDrawable.java b/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/MaterialProgressDrawable.java index d75a5a4..ce8508d 100644 --- a/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/MaterialProgressDrawable.java +++ b/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/MaterialProgressDrawable.java @@ -470,9 +470,9 @@ private static class Ring { private final Callback mCallback; - private float mStartTrim = 0.0f; - private float mEndTrim = 0.0f; - private float mRotation = 0.0f; + private float mStartTrim; + private float mEndTrim; + private float mRotation; private float mStrokeWidth = 5.0f; private float mStrokeInset = 2.5f; diff --git a/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/SwipeRefreshTestLayout.java b/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/SwipeRefreshTestLayout.java index 3b0f588..78d69c1 100644 --- a/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/SwipeRefreshTestLayout.java +++ b/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/SwipeRefreshTestLayout.java @@ -108,7 +108,7 @@ public class SwipeRefreshTestLayout extends ViewGroup implements NestedScrolling */ private View mTarget; // the target of the gesture private OnRefreshListener mListener; - private boolean mRefreshing = false; + private boolean mRefreshing; private int mTouchSlop; /** * 触发刷新的下拉高度
@@ -133,7 +133,7 @@ public class SwipeRefreshTestLayout extends ViewGroup implements NestedScrolling */ private int mCurrentTargetOffsetTop; // Whether or not the starting offset has been determined. - private boolean mOriginalOffsetCalculated = false; + private boolean mOriginalOffsetCalculated; private float mInitialMotionY; private float mInitialDownY; diff --git a/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/util/Logger.java b/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/util/Logger.java index 6e3936e..7c2469e 100644 --- a/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/util/Logger.java +++ b/swipetorefreshlayoutgoogle/src/main/java/com/tellh/swipetorefreshlayoutgoogle/util/Logger.java @@ -10,8 +10,8 @@ public final class Logger { * Set true or false if you want read logs or not */ private static boolean logEnabled_d = true; - private static boolean logEnabled_i = false; - private static boolean logEnabled_e = false; + private static boolean logEnabled_i; + private static boolean logEnabled_e; private Logger() {} diff --git a/taurus_flyplane/src/main/java/com/yalantis/taurus/RefreshView.java b/taurus_flyplane/src/main/java/com/yalantis/taurus/RefreshView.java index fd18f35..7f628de 100644 --- a/taurus_flyplane/src/main/java/com/yalantis/taurus/RefreshView.java +++ b/taurus_flyplane/src/main/java/com/yalantis/taurus/RefreshView.java @@ -77,14 +77,14 @@ public class RefreshView extends Drawable implements Drawable.Callback, Animatab private int mLeftCloudsWidthCenter; private int mLeftCloudsHeightCenter; - private float mPercent = 0.0f; + private float mPercent; private Bitmap mJet; private Bitmap mFrontClouds; private Bitmap mLeftClouds; private Bitmap mRightClouds; - private boolean isRefreshing = false; + private boolean isRefreshing; private float mLoadingAnimationTime; private float mLastAnimationTime;