Updated widget after activating pro features

This commit is contained in:
M66B 2019-08-06 10:52:32 +02:00
parent 9b4493d356
commit 7a49a7dd89
1 changed files with 7 additions and 0 deletions

View File

@ -214,8 +214,11 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL
.putBoolean("pro", true)
.putBoolean("play_store", false)
.apply();
Log.i("IAB response valid");
ToastEx.makeText(this, R.string.title_pro_valid, Toast.LENGTH_LONG).show();
WidgetUnified.update(this);
} else {
Log.i("IAB response invalid");
ToastEx.makeText(this, R.string.title_pro_invalid, Toast.LENGTH_LONG).show();
@ -383,6 +386,8 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL
}
editor.apply();
WidgetUnified.update(this);
}
if (query.size() > 0)
@ -446,6 +451,8 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL
for (IBillingListener listener : listeners)
listener.onPurchased(purchase.getSku());
WidgetUnified.update(ActivityBilling.this);
} else
notifyError(text);
}