Update dependencies

Settings activity refactor
This commit is contained in:
NekoInverter committed 2020-03-23 14:26:54 +08:00
1 parent ba6d41b91f
commit a9b7df3284
248 files changed
+8700 -8980

No files matched your search

@@ -24,7 +24,9 @@ import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Interpolator;
import androidx.annotation.NonNull;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.hippo.ehviewer.R;
import com.hippo.yorozuya.AnimationUtils;
@@ -80,7 +82,7 @@ public class FabLayout extends ViewGroup implements View.OnClickListener {
public void addView(@NonNull View child, int index, ViewGroup.LayoutParams params) {
if (!(child instanceof FloatingActionButton)) {
throw new IllegalStateException("FloatingActionBarLayout should only " +
"contain FloatingActionButton, but try to add "+ child.getClass().getName());
"contain FloatingActionButton, but try to add " + child.getClass().getName());
}
super.addView(child, index, params);
}
@@ -145,7 +147,7 @@ public class FabLayout extends ViewGroup implements View.OnClickListener {
int bottom = getMeasuredHeight() - getPaddingBottom();
int count = getChildCount();
int i = count;
while(--i >= 0) {
while (--i >= 0) {
View child = getChildAt(i);
if (child.getVisibility() == View.GONE) {
continue;
@@ -288,7 +290,7 @@ public class FabLayout extends ViewGroup implements View.OnClickListener {
} else {
startRotation = 0.0f;
endRotation = 0.0f;
startScale = 1.0f;
startScale = 1.0f;
endScale = 0.0f;
interpolator = AnimationUtils.SLOW_FAST_INTERPOLATOR;
}