mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
be66079667
commit
c3eab6eee0
|
@ -474,7 +474,7 @@ public class FragmentMessages extends FragmentBase {
|
||||||
int first = llm.findFirstVisibleItemPosition();
|
int first = llm.findFirstVisibleItemPosition();
|
||||||
View child = rvMessage.getChildAt(pos - (first < 0 ? 0 : first));
|
View child = rvMessage.getChildAt(pos - (first < 0 ? 0 : first));
|
||||||
if (child != null) {
|
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);
|
child.startAnimation(animation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
|
@ -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" />
|
|
Loading…
Reference in New Issue