Revert "Android launcher now Kotlin, app should be recognized as Game"
This reverts commit 8bdad4c38d
.
This commit is contained in:
parent
8232ca3aee
commit
127bafdbc6
3 changed files with 20 additions and 17 deletions
|
@ -10,7 +10,6 @@
|
|||
android:allowBackup="true"
|
||||
android:icon="@drawable/uncivicon2"
|
||||
android:label="@string/app_name"
|
||||
android:isGame="true"
|
||||
android:theme="@style/GdxTheme" >
|
||||
<activity
|
||||
android:name="com.unciv.app.AndroidLauncher"
|
||||
|
|
20
android/src/com/unciv/app/AndroidLauncher.java
Normal file
20
android/src/com/unciv/app/AndroidLauncher.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
package com.unciv.app;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.badlogic.gdx.backends.android.AndroidApplication;
|
||||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
|
||||
import com.unciv.UncivGame;
|
||||
|
||||
public class AndroidLauncher extends AndroidApplication {
|
||||
@Override
|
||||
protected void onCreate (Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
||||
String version = BuildConfig.VERSION_NAME;
|
||||
|
||||
config.useImmersiveMode=true;
|
||||
|
||||
initialize(new UncivGame(version), config);
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package com.unciv.app
|
||||
|
||||
import android.os.Bundle
|
||||
import com.badlogic.gdx.backends.android.AndroidApplication
|
||||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration
|
||||
import com.unciv.UncivGame
|
||||
|
||||
class AndroidLauncher : AndroidApplication() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
val config = AndroidApplicationConfiguration()
|
||||
val version = BuildConfig.VERSION_NAME
|
||||
config.useImmersiveMode = true
|
||||
initialize(UncivGame(version), config)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue