ads
This commit is contained in:
@@ -90,6 +90,7 @@ public class CalculatorApplication extends android.app.Application {
|
||||
return CalculatorSecurity.getPK();
|
||||
}
|
||||
});
|
||||
|
||||
BillingController.checkBillingSupported(this);
|
||||
}
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ public class CalculatorPreferencesActivity extends PreferenceActivity implements
|
||||
} else {
|
||||
if (!CalculatorApplication.isAdFree(CalculatorPreferencesActivity.this)) {
|
||||
// not purchased => show purchase window for user
|
||||
BillingController.requestPurchase(CalculatorPreferencesActivity.this, CalculatorApplication.AD_FREE_PRODUCT_ID);
|
||||
BillingController.requestPurchase(CalculatorPreferencesActivity.this, CalculatorApplication.AD_FREE_PRODUCT_ID, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -10,7 +10,6 @@ import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import com.google.ads.AdView;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.solovyev.android.calculator.CalculatorApplication;
|
||||
|
||||
/**
|
||||
* User: serso
|
||||
@@ -34,7 +33,8 @@ public class AbstractHelpActivity extends Activity {
|
||||
|
||||
setContentView(layoutId);
|
||||
|
||||
adView = CalculatorApplication.inflateAd(this);
|
||||
// do not inflate ad in help (as some problems were encountered dut to ScrollView - no space for ad banner)
|
||||
//adView = CalculatorApplication.inflateAd(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user