Fix backups crash when not signed in to play store.

This commit is contained in:
Alex Hart
2024-12-05 13:23:52 -04:00
committed by Greyson Parrelli
parent 07eb323f8c
commit 5e10ccc969
4 changed files with 34 additions and 18 deletions

View File

@@ -465,7 +465,7 @@ public class ApplicationDependencyProvider implements AppDependencies.Provider {
@Override
public @NonNull BillingApi provideBillingApi() {
return BillingFactory.create(GooglePlayBillingDependencies.INSTANCE, RemoteConfig.messageBackups() && !Environment.IS_STAGING);
return BillingFactory.create(GooglePlayBillingDependencies.INSTANCE, RemoteConfig.messageBackups() && Environment.Backups.supportsGooglePlayBilling());
}
@Override