forked from organicmaps/organicmaps
[android] Fixed random crash while clearing the sponosred adapter
This commit is contained in:
parent
d967f945de
commit
d6f0a0f885
1 changed files with 1 additions and 1 deletions
|
@ -1010,7 +1010,7 @@ public class PlacePageView extends RelativeLayout
|
|||
private void clearSponsoredGalleryViews()
|
||||
{
|
||||
mSponsoredAdapter = null;
|
||||
mRvSponsoredProducts.setAdapter(new ViatorAdapter(new ViatorProduct[]{}, "", null));
|
||||
mRvSponsoredProducts.swapAdapter(null /* adapter */, false /* removeAndRecycleExistingViews */);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue