hide navigation bar if pip is not available

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2021-11-09 13:35:29 +01:00
parent f5106e6050
commit 89d0bcfc78
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -284,6 +284,14 @@ public class CallActivity extends BaseActivity {
binding = CallActivityBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
if (!isPipModePossible()){
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
binding.controllerCallLayout.setFitsSystemWindows(false);
}
Bundle extras = getIntent().getExtras();
roomId = extras.getString(BundleKeys.INSTANCE.getKEY_ROOM_ID(), "");
roomToken = extras.getString(BundleKeys.INSTANCE.getKEY_ROOM_TOKEN(), "");