[android] Fixed updating catalog webview after single bookmark payment

Added updating catalog webview when subscription is purhchased after launch subscription screen from catalog banner
This commit is contained in:
Александр Зацепин 2020-01-27 13:14:26 +03:00 committed by Daria Volvenkova
parent b9300f49b0
commit 6312c16cce

View file

@ -239,15 +239,13 @@ public class BookmarksCatalogFragment extends BaseWebViewMwmFragment
if (requestCode == PurchaseUtils.REQ_CODE_PAY_SUBSCRIPTION)
{
mWebView.reload();
showSubscriptionSuccessDialog();
return;
}
if (requestCode == PurchaseUtils.REQ_CODE_PAY_BOOKMARK && data != null
&& data.getBooleanExtra(PurchaseUtils.EXTRA_IS_SUBSCRIPTION, false))
{
if (requestCode == PurchaseUtils.REQ_CODE_PAY_BOOKMARK)
mWebView.reload();
}
}
private void showSubscriptionSuccessDialog()