Skip to content

Commit

Permalink
Logic for app rating reminder dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
bagaturchess committed Feb 27, 2023
1 parent 0adc237 commit 02c611e
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,18 @@ public boolean openInterstitial() {

System.out.println("Activity_Base_Ads_Banner.openInterstitial(): called");

boolean success = false;

try {

if (Application_Base.getInstance().getApp_Me().isPaid()) {

return success;
System.out.println("Activity_Base_Ads_Banner.openInterstitial(): the app is paid - skipping");

return false;
}


boolean success = false;

long now = System.currentTimeMillis();

if (now >= timestamp_last_interstitial_ad_openning + 60 * 1000) {
Expand All @@ -214,11 +217,14 @@ public boolean openInterstitial() {
System.out.println("Activity_Base_Ads_Banner.openInterstitial(): SKIPPED (to not show too often)");
}

} catch(Throwable t) {
return success;


} catch (Throwable t) {

t.printStackTrace();
}

return success;
return false;
}
}
}

0 comments on commit 02c611e

Please sign in to comment.