mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-10 02:53:46 +02:00
Fixed scroll position
This commit is contained in:
@@ -1546,7 +1546,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
@Override
|
||||
public void run() {
|
||||
LinearLayoutManager llm = (LinearLayoutManager) rvMessage.getLayoutManager();
|
||||
llm.scrollToPositionWithOffset(pos, -y);
|
||||
View child = llm.getChildAt(pos);
|
||||
int dy = (child == null ? 0 : llm.getTopDecorationHeight(child));
|
||||
llm.scrollToPositionWithOffset(pos, -y - dy);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user