android_calculator-56: Billing doesn't work if internet was off on the start of application

This commit is contained in:
Sergey Solovyev 2012-01-14 18:22:00 +04:00
parent 3a01528376
commit 6f3ea4da65

View File

@ -128,6 +128,9 @@ public class CalculatorActivity extends Activity implements FontSizeAdjuster, Sh
ResourceCache.instance.initCaptions(CalculatorApplication.getInstance(), R.string.class);
firstTimeInit(preferences);
// init billing controller
BillingController.checkBillingSupported(this);
vibrator = (Vibrator) this.getSystemService(VIBRATOR_SERVICE);
CalculatorHistory.instance.load(this, preferences);
@ -384,7 +387,6 @@ public class CalculatorActivity extends Activity implements FontSizeAdjuster, Sh
billingObserver = new CalculatorBillingObserver(this);
BillingController.registerObserver(billingObserver);
BillingController.checkBillingSupported(this);
final int savedVersion = Preferences.appVersion.getPreference(preferences);