Skip to content

Commit 1f131b1

Browse files
committed
A lot of User Interface / User Experience improvements
1 parent c0fcb93 commit 1f131b1

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

app/src/main/java/org/metatrans/commons/Activity_Base_Ads_Banner.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff 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
}

app/src/main/java/org/metatrans/commons/app/Application_Base_Ads.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)