Scroll to message body

This commit is contained in:
M66B
2018-12-22 09:06:33 +01:00
parent aea6c63db9
commit 157bfbdf5a
2 changed files with 17 additions and 0 deletions

View File

@@ -334,6 +334,17 @@ public class FragmentMessages extends FragmentEx {
return bodies.get(id);
}
@Override
public void scrollTo(final int pos, final int dy) {
new Handler().post(new Runnable() {
@Override
public void run() {
rvMessage.scrollToPosition(pos);
rvMessage.scrollBy(0, dy);
}
});
}
@Override
public void move(long id, String name, boolean type) {
Bundle args = new Bundle();