Prevent crash

This commit is contained in:
M66B 2019-05-11 07:06:48 +02:00
parent be66079667
commit c3eab6eee0
3 changed files with 11 additions and 7 deletions

View File

@ -474,7 +474,7 @@ public class FragmentMessages extends FragmentBase {
int first = llm.findFirstVisibleItemPosition();
View child = rvMessage.getChildAt(pos - (first < 0 ? 0 : first));
if (child != null) {
Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.fade_in_fast);
Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.enter_from_bottom);
child.startAnimation(animation);
}

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate
android:duration="@android:integer/config_shortAnimTime"
android:fromXDelta="0%"
android:fromYDelta="100%"
android:toXDelta="0%"
android:toYDelta="0%" />
</set>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@android:integer/config_shortAnimTime"
android:fromAlpha="0.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:toAlpha="1.0" />