From 0b313fa9df01b03f98a0e617162ff3eb4264a5e3 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 19 Jun 2019 15:22:22 +0200 Subject: [PATCH] Simplification --- .../java/eu/faircode/email/ActivityBilling.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBilling.java b/app/src/main/java/eu/faircode/email/ActivityBilling.java index 5d94a6f081..b9147672ba 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBilling.java +++ b/app/src/main/java/eu/faircode/email/ActivityBilling.java @@ -168,7 +168,7 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL String text = getBillingResponseText(result); Log.i("IAB launch billing flow response=" + text); if (result.getResponseCode() != BillingClient.BillingResponseCode.OK) - Toast.makeText(ActivityBilling.this, text, Toast.LENGTH_LONG).show(); + Toast.makeText(this, text, Toast.LENGTH_LONG).show(); } else Helper.view(this, this, getIntentPro()); } @@ -188,10 +188,10 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL .putBoolean("play_store", false) .apply(); Log.i("Response valid"); - Toast.makeText(ActivityBilling.this, R.string.title_pro_valid, Toast.LENGTH_LONG).show(); + Toast.makeText(this, R.string.title_pro_valid, Toast.LENGTH_LONG).show(); } else { Log.i("Response invalid"); - Toast.makeText(ActivityBilling.this, R.string.title_pro_invalid, Toast.LENGTH_LONG).show(); + Toast.makeText(this, R.string.title_pro_invalid, Toast.LENGTH_LONG).show(); } } catch (NoSuchAlgorithmException ex) { Log.e(ex); @@ -242,7 +242,7 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL if (result.getResponseCode() == BillingClient.BillingResponseCode.OK) checkPurchases(purchases); else - Toast.makeText(ActivityBilling.this, text, Toast.LENGTH_LONG).show(); + Toast.makeText(this, text, Toast.LENGTH_LONG).show(); } private void queryPurchases() { @@ -253,7 +253,7 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL if (result.getResponseCode() == BillingClient.BillingResponseCode.OK) checkPurchases(result.getPurchasesList()); else - Toast.makeText(ActivityBilling.this, text, Toast.LENGTH_LONG).show(); + Toast.makeText(this, text, Toast.LENGTH_LONG).show(); } interface IBillingListener { @@ -328,11 +328,11 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL } else { Log.w("Invalid signature"); - Toast.makeText(ActivityBilling.this, R.string.title_pro_invalid, Toast.LENGTH_LONG).show(); + Toast.makeText(this, R.string.title_pro_invalid, Toast.LENGTH_LONG).show(); } } catch (Throwable ex) { Log.e(ex); - Toast.makeText(ActivityBilling.this, Helper.formatThrowable(ex), Toast.LENGTH_LONG).show(); + Toast.makeText(this, Helper.formatThrowable(ex), Toast.LENGTH_LONG).show(); } editor.apply();