Resolved #872 - Added Immersive mode, for users whose navigation bar is a virtual, not physical one

This commit is contained in:
Yair Morgenstern 2019-06-13 17:28:23 +03:00
parent ab1a1be170
commit d49b33f0c7
2 changed files with 2 additions and 6 deletions

View file

@ -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);
}

View file

@ -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