mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 21:59:54 +01:00
Fix IllegalStateException in RecyclerView when backing out very quickly
after adding image attachments for preview before sending
This commit is contained in:
@@ -79,7 +79,7 @@ public class ImagePreview extends ConstraintLayout {
|
|||||||
((ImagePreviewAdapter) imageList.getAdapter());
|
((ImagePreviewAdapter) imageList.getAdapter());
|
||||||
int pos = requireNonNull(adapter).loadItemPreview(result);
|
int pos = requireNonNull(adapter).loadItemPreview(result);
|
||||||
if (pos != NO_POSITION) {
|
if (pos != NO_POSITION) {
|
||||||
imageList.smoothScrollToPosition(pos);
|
imageList.scrollToPosition(pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user