Skip to content

Commit

Permalink
Do not show Navigation Bar with banner
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Jul 1, 2019
1 parent 986437a commit 25b616b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions game.project
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ bundle_identifier = com.agulev.test

[android]
package = com.agulev.test
immersive_mode = 1

0 comments on commit 25b616b

Please sign in to comment.