# HG changeset patch # User John Tsiombikas # Date 1444357031 -10800 # Node ID 622f61160016e1ca5b3b2b9cddd4c6a579368d09 # Parent 48a0660bac82de71bd48ce5a0cc0a27eec999e22 ok this fixes it but why? diff -r 48a0660bac82 -r 622f61160016 src/android/MainActivity.java --- a/src/android/MainActivity.java Thu Oct 08 16:23:27 2015 +0300 +++ b/src/android/MainActivity.java Fri Oct 09 05:17:11 2015 +0300 @@ -21,7 +21,7 @@ MainActivity act; - AdView ad_view; + AdView ad_view = null; PopupWindow ad_win; LinearLayout ad_layout, ad_main_layout; boolean ad_ready = false; @@ -173,6 +173,10 @@ } }); + if(!waiting_for_ad) { + request_ad(); + } + Log.i(tag, "[JAVA] Done creating ad popup"); } });