use of de.pixart.messenger.ui.util.ScrollState in project Pix-Art-Messenger by kriztan.
the class ConversationsOverviewFragment method getScrollState.
private ScrollState getScrollState() {
if (this.binding == null) {
return null;
}
int position = this.binding.list.getFirstVisiblePosition();
final View view = this.binding.list.getChildAt(0);
if (view != null) {
return new ScrollState(position, view.getTop());
} else {
return new ScrollState(position, 0);
}
}
Aggregations