istereo2

changeset 32:622f61160016

ok this fixes it but why?
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Oct 2015 05:17:11 +0300
parents 48a0660bac82
children 3784a2d4bed5
files src/android/MainActivity.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/android/MainActivity.java	Thu Oct 08 16:23:27 2015 +0300
     1.2 +++ b/src/android/MainActivity.java	Fri Oct 09 05:17:11 2015 +0300
     1.3 @@ -21,7 +21,7 @@
     1.4  
     1.5  	MainActivity act;
     1.6  
     1.7 -	AdView ad_view;
     1.8 +	AdView ad_view = null;
     1.9  	PopupWindow ad_win;
    1.10  	LinearLayout ad_layout, ad_main_layout;
    1.11  	boolean ad_ready = false;
    1.12 @@ -173,6 +173,10 @@
    1.13  					}
    1.14  				});
    1.15  
    1.16 +				if(!waiting_for_ad) {
    1.17 +					request_ad();
    1.18 +				}
    1.19 +
    1.20  				Log.i(tag, "[JAVA] Done creating ad popup");
    1.21  			}
    1.22  		});