[android] Reduced restriction on non-null download url when onPaymenRequired called. It's possible when we quickly get out from catalog fragment after pressing the buy/download button and callback came to another fragment

This commit is contained in:
alexzatsepin 2020-09-08 18:40:13 +03:00 committed by Maksim Andrianov
parent d07d4a9c6a
commit 23f5ec4fed

View file

@ -122,7 +122,7 @@ class DefaultBookmarkDownloadController implements BookmarkDownloadController,
{
LOGGER.i(TAG, "Payment required for bookmark purchase");
if (TextUtils.isEmpty(mDownloadUrl))
throw new IllegalStateException("Download url must be non-null if payment required!");
return;
if (mCallback != null)
{