DepictsFragment: add null check for media (#5488)

This commit is contained in:
Rohit Verma 2024-01-29 12:03:36 +05:30 committed by GitHub
parent 84ffffbbe7
commit 9f7e407181
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,7 @@ public class DepictsFragment extends UploadBaseFragment implements DepictsContra
nearbyPlace = bundle.getParcelable(SELECTED_NEARBY_PLACE);
}
if(callback!=null){
if(callback!=null || media!=null){
init();
presenter.getDepictedItems().observe(getViewLifecycleOwner(), this::setDepictsList);
}