From b7b5f8e8e8e4a70b1d498f920cb05c439e4dd266 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 2 Jun 2016 15:27:42 +0200 Subject: [PATCH] hide the navigation bar icons if they are software ones --- .../main/java/com/simplemobiletools/camera/MainActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/simplemobiletools/camera/MainActivity.java b/app/src/main/java/com/simplemobiletools/camera/MainActivity.java index d9e6e4ed..a1902c3f 100644 --- a/app/src/main/java/com/simplemobiletools/camera/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/camera/MainActivity.java @@ -36,6 +36,7 @@ public class MainActivity extends AppCompatActivity { preview = new Preview(this, (SurfaceView) findViewById(R.id.surfaceView)); preview.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); viewHolder.addView(preview); + hideNavigationBarIcons(); } @OnClick(R.id.toggle_camera) @@ -74,6 +75,10 @@ public class MainActivity extends AppCompatActivity { preview.takePicture(); } + private void hideNavigationBarIcons() { + getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); + } + @Override protected void onResume() { super.onResume();