mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fix crash in chat list while scrolling
This commit is contained in:
parent
1baab5b590
commit
59dc202150
1 changed files with 2 additions and 1 deletions
|
|
@ -324,7 +324,8 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
|||
@Override
|
||||
public void run() {
|
||||
//Scroll to latest saw message
|
||||
messagesScrollView.scrollTo(0, messagesLayout.getChildAt(MESSAGES_STEP-1).getBottom());
|
||||
if (messagesScrollView != null && messagesLayout != null && messagesLayout.getChildCount() >= MESSAGES_STEP-1)
|
||||
messagesScrollView.scrollTo(0, messagesLayout.getChildAt(MESSAGES_STEP-1).getBottom());
|
||||
}
|
||||
}, 300);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue