mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-11-16 08:03:23 +00:00
Clean up more codes
This commit is contained in:
@@ -23,8 +23,6 @@ public class ConcealableBottomNavigationView extends BottomNavigationView {
|
||||
};
|
||||
|
||||
private boolean isHidden;
|
||||
private int lastHeight = -1;
|
||||
|
||||
public ConcealableBottomNavigationView(@NonNull Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
@@ -42,14 +40,6 @@ public class ConcealableBottomNavigationView extends BottomNavigationView {
|
||||
}
|
||||
|
||||
private void recreateAnimator(int height) {
|
||||
if (lastHeight == height) return;
|
||||
lastHeight = height;
|
||||
|
||||
// End the current animation before setting a new one
|
||||
// otherwise it crashes on Android 5.0
|
||||
StateListAnimator lastAnimator = getStateListAnimator();
|
||||
if (lastAnimator != null) lastAnimator.jumpToCurrentState();
|
||||
|
||||
Animator toHidden = ObjectAnimator.ofFloat(this, "translationY", height);
|
||||
toHidden.setDuration(175);
|
||||
toHidden.setInterpolator(new FastOutLinearInInterpolator());
|
||||
|
||||
Reference in New Issue
Block a user