Last active
November 1, 2016 04:46
-
-
Save truedem/7781529841209ada6bae351390328a2a to your computer and use it in GitHub Desktop.
Delayed AdMob interstitial request to prevent ANR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
content.postDelayed(new Runnable() { | |
@Override | |
public void run() { | |
if ((Build.VERSION.SDK_INT >= 17 && LWQSettingsActivity.this.isDestroyed()) || LWQSettingsActivity.this.isFinishing()) { | |
return; | |
} | |
requestNewInterstitial(); | |
} | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment