From: Soren Stoutner Date: Fri, 13 Jul 2018 02:51:52 +0000 (-0700) Subject: Disable the navigation and bookmarks drawers in full screen video mode. https:/... X-Git-Tag: v2.12~14 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=23e147850398e0dd66da4bbef5ca5f2e517c28c6;p=PrivacyBrowserAndroid.git Disable the navigation and bookmarks drawers in full screen video mode. https://redmine.stoutner.com/issues/298 --- 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%