Fix a crash

This commit is contained in:
NekoInverter committed 2021-01-25 12:40:34 +08:00
1 parent 2223415537
commit 2edc07d6ca
1 file changed
+3
@@ -608,6 +608,9 @@ public final class GalleryListScene extends BaseScene
@NonNull
@Override
public WindowInsets onProgress(@NonNull WindowInsets insets, @NonNull List<WindowInsetsAnimation> runningAnimations) {
if (animation == null) {
return insets;
}
if (mSearchFab != null) {
FabLayout fabLayout = (FabLayout) mSearchFab.getParent();
int offset = MathUtils.lerp(-(startBottomSearchFab - endBottomSearchFab), 0, animation.getInterpolatedFraction());