use of net.osmand.plus.chooseplan.button.PriceButton in project Osmand by osmandapp.
the class MapsPlusPlanFragment method collectPriceButtons.
public static List<PriceButton<?>> collectPriceButtons(OsmandApplication app, InAppPurchaseHelper purchaseHelper, boolean nightMode) {
List<InAppSubscription> subscriptions = getVisibleSubscriptions(app, purchaseHelper);
List<PriceButton<?>> priceButtons = new ArrayList<>(PurchasingUtils.collectSubscriptionButtons(app, purchaseHelper, subscriptions, nightMode));
OneTimePaymentButton oneTimePaymentButton = PurchasingUtils.getOneTimePaymentButton(app);
if (oneTimePaymentButton != null) {
priceButtons.add(oneTimePaymentButton);
}
return priceButtons;
}
Aggregations