|
|
@ -98,9 +98,12 @@ public class ActivityBilling extends ActivityBase implements
|
|
|
|
if (standalone) {
|
|
|
|
if (standalone) {
|
|
|
|
setContentView(R.layout.activity_billing);
|
|
|
|
setContentView(R.layout.activity_billing);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int count = getSupportFragmentManager().getBackStackEntryCount();
|
|
|
|
|
|
|
|
if (count == 0) {
|
|
|
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
|
|
|
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
|
|
|
fragmentTransaction.replace(R.id.content_frame, new FragmentPro()).addToBackStack("pro");
|
|
|
|
fragmentTransaction.replace(R.id.content_frame, new FragmentPro()).addToBackStack("pro");
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
|
|
|
|
|
|
|
|
|
|
@ -314,6 +317,7 @@ public class ActivityBilling extends ActivityBase implements
|
|
|
|
Log.unexpectedError(getSupportFragmentManager(), ex);
|
|
|
|
Log.unexpectedError(getSupportFragmentManager(), ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
private void onPurchaseConsume(Intent intent) {
|
|
|
|
private void onPurchaseConsume(Intent intent) {
|
|
|
|
billingClient.queryPurchasesAsync(BillingClient.SkuType.INAPP, new PurchasesResponseListener() {
|
|
|
|
billingClient.queryPurchasesAsync(BillingClient.SkuType.INAPP, new PurchasesResponseListener() {
|
|
|
|