mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
Fade in on up navigation
This commit is contained in:
@@ -471,6 +471,13 @@ public class FragmentMessages extends FragmentBase {
|
||||
do {
|
||||
Long key = adapter.getKeyAtPosition(pos);
|
||||
if (key != null && isExpanded(key)) {
|
||||
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);
|
||||
child.startAnimation(animation);
|
||||
}
|
||||
|
||||
rvMessage.scrollToPosition(pos);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user