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