Fix crashes

This commit is contained in:
tehcneko committed 2021-03-06 12:57:17 +08:00
1 parent 67e8846f28
commit 24e1c95fae
3 files changed
+7 -1

No files matched your search

@@ -290,6 +290,9 @@ public class FavoritesScene extends BaseScene implements
@NonNull
@Override
public WindowInsets onProgress(@NonNull WindowInsets insets, @NonNull List<WindowInsetsAnimation> runningAnimations) {
if (animation == null) {
return insets;
}
if (mFabLayout != null) {
int offset = MathUtils.lerp(-(startBottomFabLayout - endBottomFabLayout), 0, animation.getInterpolatedFraction());
mFabLayout.setTranslationY(offset);
@@ -239,6 +239,9 @@ public final class GalleryCommentsScene extends ToolbarScene
@NonNull
@Override
public WindowInsets onProgress(@NonNull WindowInsets insets, @NonNull List<WindowInsetsAnimation> runningAnimations) {
if (animation == null) {
return insets;
}
if (mEditPanel != null) {
int offset = MathUtils.lerp(-(startBottomEditPanel - endBottomEditPanel), 0, animation.getInterpolatedFraction());
mEditPanel.setTranslationY(offset);