[Modify]安卓13适配和谷歌充值页面加loading
This commit is contained in:
@@ -90,6 +90,7 @@ public class ChargeActivity extends BaseMvpActivity<IChargeView, ChargePresenter
|
||||
setContentView(R.layout.activity_charge);
|
||||
findView();
|
||||
EventBus.getDefault().register(this);
|
||||
getDialogManager().showProgressDialog(this);
|
||||
initViews();
|
||||
initBilling();
|
||||
setProtocol();
|
||||
@@ -176,8 +177,10 @@ public class ChargeActivity extends BaseMvpActivity<IChargeView, ChargePresenter
|
||||
if (billingResult.getResponseCode() != BillingClient.BillingResponseCode.OK) {
|
||||
Log.w(TAG, "Unsuccessful query for type: " + BillingClient.SkuType.INAPP
|
||||
+ ". Error code: " + billingResult.getResponseCode());
|
||||
getDialogManager().dismissDialog();
|
||||
toast(getString(R.string.Recharge_failure));
|
||||
} else if (skuDetailsList != null && skuDetailsList.size() > 0) {
|
||||
getDialogManager().dismissDialog();
|
||||
List<ChargeBean> showChargeList = new ArrayList<>();
|
||||
for (ChargeBean chargeBean : chargeBeanList) {
|
||||
for (SkuDetails skuDetails : skuDetailsList) {
|
||||
@@ -190,6 +193,7 @@ public class ChargeActivity extends BaseMvpActivity<IChargeView, ChargePresenter
|
||||
}
|
||||
runOnUiThread(() -> mChargeAdapter.setNewData(showChargeList));
|
||||
} else {
|
||||
getDialogManager().dismissDialog();
|
||||
toast(getString(R.string.Recharge_failure));
|
||||
}
|
||||
});
|
||||
@@ -280,6 +284,7 @@ public class ChargeActivity extends BaseMvpActivity<IChargeView, ChargePresenter
|
||||
if (billingManager != null) {
|
||||
billingManager.destroy();
|
||||
}
|
||||
getDialogManager().dismissDialog();
|
||||
}
|
||||
|
||||
private void initViews() {
|
||||
|
Reference in New Issue
Block a user