From 23e147850398e0dd66da4bbef5ca5f2e517c28c6 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Thu, 12 Jul 2018 19:51:52 -0700 Subject: [PATCH] Disable the navigation and bookmarks drawers in full screen video mode. https://redmine.stoutner.com/issues/298 --- .../privacybrowser/activities/MainWebViewActivity.java | 6 ++++++ app/src/main/res/values-es/strings.xml | 2 ++ app/src/main/res/values-it/strings.xml | 2 ++ app/src/main/res/values-ru/strings.xml | 2 ++ 4 files changed, 12 insertions(+) diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java index 26a6a403..07126c98 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java @@ -996,6 +996,9 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook // Set `rootCoordinatorLayout` to fill the entire screen. rootCoordinatorLayout.setFitsSystemWindows(false); + // Disable the sliding drawers. + drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); + // Add `view` to `fullScreenVideoFrameLayout` and display it on the screen. fullScreenVideoFrameLayout.addView(view); fullScreenVideoFrameLayout.setVisibility(View.VISIBLE); @@ -1008,6 +1011,9 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook fullScreenVideoFrameLayout.removeAllViews(); fullScreenVideoFrameLayout.setVisibility(View.GONE); + // Enable the sliding drawers. + drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); + // Add the translucent status flag. This also resets `drawerLayout's` `View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN`. getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 3985e9b5..18aedaa0 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -130,6 +130,8 @@ Borrar cookies Borrar almacenamiento DOM Borrar datos de formulario + Lista molesta de Fanboy + Lista de bloqueo social de Fanboy Diseño Tamaño de fuente 25% diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index f9cf17b3..9b48b839 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -130,6 +130,8 @@ Elimina cookies Elimina DOM storage Elimina dati dei moduli + Fanboy’s annoyance list + Fanboy’s social blocking list Layout Dimensione font 25% diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index b0411608..7441c0f7 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -131,6 +131,8 @@ Очистить cookie Очистить хранилище DOM Очистить данные формы + Fanboy’s annoyance list + Fanboy’s social blocking list Внешний вид Размер шрифта 25% -- 2.45.2