Resolved #872 - Added Immersive mode, for users whose navigation bar is a virtual, not physical one
This commit is contained in:
parent
ab1a1be170
commit
d49b33f0c7
2 changed files with 2 additions and 6 deletions
|
@ -1,14 +1,11 @@
|
|||
package com.unciv.app;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.badlogic.gdx.backends.android.AndroidApplication;
|
||||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
|
||||
import com.unciv.UnCivGame;
|
||||
|
||||
import static android.content.Intent.ACTION_VIEW;
|
||||
|
||||
public class AndroidLauncher extends AndroidApplication {
|
||||
@Override
|
||||
protected void onCreate (Bundle savedInstanceState) {
|
||||
|
@ -16,8 +13,7 @@ public class AndroidLauncher extends AndroidApplication {
|
|||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
||||
String version = BuildConfig.VERSION_NAME;
|
||||
|
||||
|
||||
Intent openInActionView = new Intent(ACTION_VIEW);
|
||||
config.useImmersiveMode=true;
|
||||
|
||||
initialize(new UnCivGame(version), config);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
|
|||
pickProductionButton.add(ImageGetter.getConstructionImage(construction).surroundWithCircle(40f)).padRight(10f)
|
||||
pickProductionButton.add(buttonText.toLabel().setFontColor(Color.WHITE))
|
||||
|
||||
if(rejectionReason=="") {
|
||||
if(rejectionReason=="") { // no rejection reason means we can build it!
|
||||
pickProductionButton.onClick {
|
||||
lastConstruction = cityScreen.city.cityConstructions.currentConstruction
|
||||
cityScreen.city.cityConstructions.currentConstruction = construction
|
||||
|
|
Loading…
Reference in a new issue