Skip to content

Commit ff72cfa

Browse files
authored
Merge pull request #403 from opendocument-app/fix-pro-billing-prompts
Fix Pro users seeing upgrade prompts
2 parents 6e5bbdc + a2860ff commit ff72cfa

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

app/src/main/java/at/tomtasche/reader/nonfree/BillingManager.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,17 @@ public class BillingManager {
1616
public void initialize(Context context, AnalyticsManager analyticsManager, AdManager adManager) {
1717
this.adManager = adManager;
1818

19-
if (!enabled) {
20-
adManager.showGoogleAds();
21-
22-
return;
23-
}
24-
2519
billingPreferences = new BillingPreferences(context);
2620

2721
if (BuildConfig.FLAVOR.equals("pro")) {
2822
billingPreferences.setPurchased(true);
2923
}
3024

25+
if (!enabled) {
26+
adManager.showGoogleAds();
27+
return;
28+
}
29+
3130
enforceAds();
3231
}
3332

0 commit comments

Comments
 (0)