From d49b33f0c7c6db4d385808de0820674d03933a82 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 13 Jun 2019 17:28:23 +0300 Subject: [PATCH] Resolved #872 - Added Immersive mode, for users whose navigation bar is a virtual, not physical one --- android/src/com/unciv/app/AndroidLauncher.java | 6 +----- core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/android/src/com/unciv/app/AndroidLauncher.java b/android/src/com/unciv/app/AndroidLauncher.java index 482b14592f..7341b59af3 100644 --- a/android/src/com/unciv/app/AndroidLauncher.java +++ b/android/src/com/unciv/app/AndroidLauncher.java @@ -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); } diff --git a/core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt b/core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt index 1075e7fabb..03bf5b9e1b 100644 --- a/core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt +++ b/core/src/com/unciv/ui/cityscreen/ConstructionsTable.kt @@ -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