mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
Fix a crashing bug
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
ab4d76b227
commit
8a07e94e0e
1 changed files with 9 additions and 3 deletions
|
@ -468,21 +468,27 @@ public class ConversationsListController extends BaseController implements Searc
|
|||
@Override
|
||||
public void onChanged() {
|
||||
super.onChanged();
|
||||
recyclerView.smoothScrollToPosition(scrollTo);
|
||||
if (recyclerView != null) {
|
||||
recyclerView.smoothScrollToPosition(scrollTo);
|
||||
}
|
||||
lastClickedConversationToken = "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemRangeChanged(int positionStart, int itemCount) {
|
||||
super.onItemRangeChanged(positionStart, itemCount);
|
||||
recyclerView.smoothScrollToPosition(scrollTo);
|
||||
if (recyclerView != null) {
|
||||
recyclerView.smoothScrollToPosition(scrollTo);
|
||||
}
|
||||
lastClickedConversationToken = "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemRangeChanged(int positionStart, int itemCount, @Nullable Object payload) {
|
||||
super.onItemRangeChanged(positionStart, itemCount, payload);
|
||||
recyclerView.smoothScrollToPosition(scrollTo);
|
||||
if (recyclerView != null) {
|
||||
recyclerView.smoothScrollToPosition(scrollTo);
|
||||
}
|
||||
lastClickedConversationToken = "";
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue