]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Disable the navigation and bookmarks drawers in full screen video mode. https:/...
authorSoren Stoutner <soren@stoutner.com>
Fri, 13 Jul 2018 02:51:52 +0000 (19:51 -0700)
committerSoren Stoutner <soren@stoutner.com>
Fri, 13 Jul 2018 02:51:52 +0000 (19:51 -0700)
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java
app/src/main/res/values-es/strings.xml
app/src/main/res/values-it/strings.xml
app/src/main/res/values-ru/strings.xml

index 26a6a403a68256af7eb0bdfac55acc56edb545ca..07126c9881fd045ea0aedc4fd826231b8a3c521d 100644 (file)
@@ -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);
 
index 3985e9b5a0e2c5a8ca2713b66e0ac54f5b45819d..18aedaa0bd2acd88ee70836158a43ad490eb5743 100644 (file)
         <string name="clear_cookies">Borrar cookies</string>
         <string name="clear_dom_storage">Borrar almacenamiento DOM</string>
         <string name="clear_form_data">Borrar datos de formulario</string>
+    <string name="options_fanboys_annoyance_list">Lista molesta de Fanboy</string>
+    <string name="options_fanboys_social_blocking_list">Lista de bloqueo social de Fanboy</string>
     <string name="layout">Diseño</string>
         <string name="font_size">Tamaño de fuente</string>
             <string name="twenty_five_percent">25%</string>
index f9cf17b3236a761ae9cde6af59769848b7ff7889..9b48b839a1c8c4a0eab2a4b8ee87439f41f084e1 100644 (file)
         <string name="clear_cookies">Elimina cookies</string>
         <string name="clear_dom_storage">Elimina DOM storage</string>
         <string name="clear_form_data">Elimina dati dei moduli</string>
+    <string name="options_fanboys_annoyance_list">Fanboy’s annoyance list</string>
+    <string name="options_fanboys_social_blocking_list">Fanboy’s social blocking list</string>
     <string name="layout">Layout</string>
         <string name="font_size">Dimensione font</string>
             <string name="twenty_five_percent">25%</string>
index b0411608ea579446428d3ace7dd4988a38a1936e..7441c0f71756e2a30c7a5440ea4cca3b793de8f4 100644 (file)
         <string name="clear_cookies">Очистить cookie</string>
         <string name="clear_dom_storage"> Очистить хранилище DOM</string>
         <string name="clear_form_data">Очистить данные формы</string>
+    <string name="options_fanboys_annoyance_list">Fanboy’s annoyance list</string>
+    <string name="options_fanboys_social_blocking_list">Fanboy’s social blocking list</string>
     <string name="layout">Внешний вид</string>
         <string name="font_size">Размер шрифта</string>
             <string name="twenty_five_percent">25%</string>