File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed
app/src/main/java/org/metatrans/commons Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,9 @@ protected void onCreate(Bundle savedInstanceState) {
3333
3434
3535 protected int getGravity () {
36- return Gravity .BOTTOM | Gravity .CENTER_HORIZONTAL ;
36+ return Gravity .TOP | Gravity .CENTER_HORIZONTAL ;
3737 }
3838
39- /*
40- @Override
41- protected void onDestroy() {
42-
43- if (getAutoMode_BannerAttachDetach()) detachBanner();
44-
45- current_adLoadFlow = null;
46-
47- super.onDestroy();
48- }
49- */
50-
5139
5240 @ Override
5341 protected void onPause () {
@@ -100,7 +88,9 @@ protected void attachBanner() {
10088 ViewGroup frame = getFrame ();
10189
10290 if (Application_Base .getInstance ().isTestMode ()) {
91+
10392 if (frame == null ) {
93+
10494 throw new IllegalStateException ("Frame is null" );
10595 }
10696 }
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ public void onCreate() {
2828 public static Application_Base_Ads getInstance () {
2929 return (Application_Base_Ads ) Application_Base .getInstance ();
3030 }
31-
32-
31+
32+
3333 public void openInterstitial () {
3434 Object activity = getCurrentActivity ();
3535 if (activity instanceof IActivityInterstitial ) {
You can’t perform that action at this time.
0 commit comments