From 25b616b451467b626603550fb1eeb22ed0087b85 Mon Sep 17 00:00:00 2001 From: Alexey Gulev Date: Mon, 1 Jul 2019 10:13:05 +0200 Subject: [PATCH] Do not show Navigation Bar with banner --- .../src/android/com/agulev/defunityads/DefUnityAds.java | 3 ++- game.project | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defunityads/src/android/com/agulev/defunityads/DefUnityAds.java b/defunityads/src/android/com/agulev/defunityads/DefUnityAds.java index 6ef91f0..b0a2f31 100644 --- a/defunityads/src/android/com/agulev/defunityads/DefUnityAds.java +++ b/defunityads/src/android/com/agulev/defunityads/DefUnityAds.java @@ -8,6 +8,7 @@ import android.view.WindowManager; import android.widget.LinearLayout; import android.view.Gravity; +import android.os.Build; import com.unity3d.ads.IUnityAdsListener; import com.unity3d.ads.UnityAds; @@ -192,7 +193,7 @@ public void onUnityBannerLoaded(String placementId, View view) { windowParams.y = WindowManager.LayoutParams.WRAP_CONTENT; windowParams.width = WindowManager.LayoutParams.WRAP_CONTENT; windowParams.height = WindowManager.LayoutParams.WRAP_CONTENT; - windowParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL; + windowParams.flags = WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; DefUnityAds.onUnityBannerLoaded(placementId); } diff --git a/game.project b/game.project index d45fdbc..1f4bbee 100644 --- a/game.project +++ b/game.project @@ -28,4 +28,5 @@ bundle_identifier = com.agulev.test [android] package = com.agulev.test +immersive_mode = 1