File tree Expand file tree Collapse file tree 5 files changed +10
-12
lines changed
res/com/badlogic/gdx/setup/resources Expand file tree Collapse file tree 5 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,10 @@ public class AndroidLauncher extends AndroidApplication implements AdsListener {
7272 // Create libgdx view
7373 View gameView = super.initializeForView(
7474 new %MAIN_CLASS%(
75- deviceId,
76- secretKey,
77- this,
78- new PurchaseManagerGoogleBilling(this)
75+ deviceId,
76+ secretKey,
77+ this,
78+ new PurchaseManagerGoogleBilling(this)
7979 ),
8080 new AndroidApplicationConfiguration()
8181 );
@@ -124,10 +124,10 @@ public class AndroidLauncher extends AndroidApplication implements AdsListener {
124124
125125 // Add AdMob into layout
126126 layout.addView(
127- this.adView,
128- new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT) {{
129- super.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
130- }}
127+ this.adView,
128+ new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT) {{
129+ super.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
130+ }}
131131 );
132132
133133 // Hook it all up
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import com.kendao.libgdx.storage.CustomPreferences;
1919import java.util.HashMap;
2020
2121public class %MAIN_CLASS% extends ApplicationAdapter implements CustomGameListener {
22- private HashMap<Class, Object> instances = new HashMap(); // for Dependency Injection
22+ private final HashMap<Class, Object> instances = new HashMap(); // for Dependency Injection
2323
2424 private final String deviceId; // is UNIQUE
2525 private final String secretKey; // key generated based on the application's keystore
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ import %PACKAGE%.%MAIN_CLASS%;
88import %PACKAGE%.enumerable.Assets;
99import %PACKAGE%.enumerable.Purchases;
1010import com.kendao.libgdx.payment.base.CustomPurchaseManager;
11- import com.kendao.libgdx.screen.base.CustomBaseScreen;
1211import com.kendao.libgdx.scenes.scene2d.ui.CustomImageButton;
1312import com.kendao.libgdx.scenes.scene2d.ui.CustomTextButton;
1413import com.kendao.libgdx.scenes.scene2d.ui.CustomToast;
14+ import com.kendao.libgdx.screen.base.CustomBaseScreen;
1515
1616public class MainScreen extends CustomBaseScreen {
1717 private CustomImageButton image;
Original file line number Diff line number Diff line change 11package %PACKAGE%.screen.splash;
22
33import com.badlogic.gdx.graphics.Color;
4- import com.badlogic.gdx.graphics.g2d.BitmapFont;
54import com.badlogic.gdx.scenes.scene2d.actions.Actions;
6- import com.badlogic.gdx.scenes.scene2d.ui.Label;
75import com.badlogic.gdx.utils.Align;
86import %PACKAGE%.%MAIN_CLASS%;
97import %PACKAGE%.enumerable.Preferences;
You can’t perform that action at this time.
0 commit comments