mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 13:48:55 +00:00
fix issue with gem purchases
This commit is contained in:
parent
6f090b8823
commit
8937347afd
1 changed files with 12 additions and 2 deletions
|
|
@ -502,7 +502,12 @@ public class ApiClientImpl implements Action1<Throwable>, ApiClient {
|
|||
|
||||
@Override
|
||||
public Observable<Void> validateSubscription(SubscriptionValidationRequest request) {
|
||||
return apiService.validateSubscription(request).compose(configureApiCallObserver());
|
||||
return apiService.validateSubscription(request).map(habitResponse -> {
|
||||
if (habitResponse.notifications != null) {
|
||||
popupNotificationsManager.showNotificationDialog(habitResponse.notifications);
|
||||
}
|
||||
return habitResponse.getData();
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -753,7 +758,12 @@ public class ApiClientImpl implements Action1<Throwable>, ApiClient {
|
|||
|
||||
@Override
|
||||
public Observable<PurchaseValidationResult> validatePurchase(PurchaseValidationRequest request) {
|
||||
return apiService.validatePurchase(request).compose(configureApiCallObserver());
|
||||
return apiService.validatePurchase(request).map(habitResponse -> {
|
||||
if (habitResponse.notifications != null) {
|
||||
popupNotificationsManager.showNotificationDialog(habitResponse.notifications);
|
||||
}
|
||||
return habitResponse.getData();
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue