From 3d8600f3a3fcb554fc14618d8d9edc5463adc056 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 15 Oct 2012 16:40:18 -0700 Subject: [PATCH] Hide the restore purchases button on first visit to the billing activity --- astrid/src/com/todoroo/astrid/billing/BillingActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/astrid/src/com/todoroo/astrid/billing/BillingActivity.java b/astrid/src/com/todoroo/astrid/billing/BillingActivity.java index a9ca63782..fd7b9b5d9 100644 --- a/astrid/src/com/todoroo/astrid/billing/BillingActivity.java +++ b/astrid/src/com/todoroo/astrid/billing/BillingActivity.java @@ -152,6 +152,9 @@ public class BillingActivity extends FragmentActivity implements AstridPurchaseO buyYear.setEnabled(false); restorePurchases.setEnabled(false); + if (!Preferences.getBoolean(BillingConstants.PREF_TRANSACTIONS_INITIALIZED, false)) + restorePurchases.setVisibility(View.GONE); + buyMonth.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) {