Fix crashes
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user