forked from organicmaps/organicmaps
[android] Renamed ads removal controller to subscription controller to make it general for all types of subscription
This commit is contained in:
parent
022d6aeae7
commit
dce2ce87f2
2 changed files with 8 additions and 8 deletions
|
@ -29,8 +29,8 @@ public class PurchaseFactory
|
|||
String weeklyProduct = PrivateVariables.adsRemovalWeeklyProductId();
|
||||
String[] productIds = Utils.concatArrays(PrivateVariables.adsRemovalNotUsedList(),
|
||||
yearlyProduct, monthlyProduct, weeklyProduct);
|
||||
return new AdsRemovalPurchaseController(validator, billingManager,
|
||||
SubscriptionType.ADS_REMOVAL, productIds);
|
||||
return new SubscriptionPurchaseController(validator, billingManager,
|
||||
SubscriptionType.ADS_REMOVAL, productIds);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
|
@ -13,11 +13,11 @@ import com.mapswithme.util.statistics.Statistics;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
class AdsRemovalPurchaseController extends AbstractPurchaseController<ValidationCallback,
|
||||
class SubscriptionPurchaseController extends AbstractPurchaseController<ValidationCallback,
|
||||
PlayStoreBillingCallback, PurchaseCallback>
|
||||
{
|
||||
private static final Logger LOGGER = LoggerFactory.INSTANCE.getLogger(LoggerFactory.Type.BILLING);
|
||||
private static final String TAG = AdsRemovalPurchaseController.class.getSimpleName();
|
||||
private static final String TAG = SubscriptionPurchaseController.class.getSimpleName();
|
||||
@NonNull
|
||||
private final ValidationCallback mValidationCallback = new AdValidationCallbackImpl();
|
||||
@NonNull
|
||||
|
@ -25,10 +25,10 @@ class AdsRemovalPurchaseController extends AbstractPurchaseController<Validation
|
|||
@NonNull
|
||||
private final SubscriptionType mType;
|
||||
|
||||
AdsRemovalPurchaseController(@NonNull PurchaseValidator<ValidationCallback> validator,
|
||||
@NonNull BillingManager<PlayStoreBillingCallback> billingManager,
|
||||
@NonNull SubscriptionType subscriptionType,
|
||||
@NonNull String... productIds)
|
||||
SubscriptionPurchaseController(@NonNull PurchaseValidator<ValidationCallback> validator,
|
||||
@NonNull BillingManager<PlayStoreBillingCallback> billingManager,
|
||||
@NonNull SubscriptionType subscriptionType,
|
||||
@NonNull String... productIds)
|
||||
{
|
||||
super(validator, billingManager, productIds);
|
||||
mType = subscriptionType;
|
Loading…
Add table
Reference in a new issue