[android] double banner is fixed

This commit is contained in:
Arsentiy Milchakov 2020-08-28 18:26:34 +03:00 committed by Maksim Andrianov
parent c169a8c5cc
commit bdd5bb1a70

View file

@ -297,6 +297,8 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
mPromoBanner = promoBanner;
mBannerFrame.removeAllViewsInLayout();
LayoutInflater inflater = LayoutInflater.from(mActivity);
View root = inflater.inflate(mPromoBanner.getType().getLayoutId(), mBannerFrame, true);
View button = root.findViewById(R.id.banner_button);