]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Bump minSdkVersion to 19 due to WebView security problems for API <=18.
authorSoren Stoutner <soren@stoutner.com>
Thu, 16 Jun 2016 19:26:07 +0000 (12:26 -0700)
committerSoren Stoutner <soren@stoutner.com>
Thu, 16 Jun 2016 19:26:07 +0000 (12:26 -0700)
app/build.gradle
app/src/main/AndroidManifest.xml
app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java

index 81cdc54fc81db73dd4171184de52f20fa30b14ba..c491207afeb895afc5c849bdb50757061ff4fbd6 100644 (file)
@@ -27,7 +27,7 @@ android {
     buildToolsVersion "23.0.3"
     defaultConfig {
         applicationId "com.stoutner.privacybrowser"
-        minSdkVersion 15
+        minSdkVersion 19
         targetSdkVersion 23
         versionCode 7
         versionName "1.6"
index fa62965ded33161075dfd543986936d8a24ef113..8bc6746e19ede6beb369f35e1227a32e33745abe 100644 (file)
             android:parentActivityName=".MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:persistableMode="persistNever" >
-
-            <!-- android.support.PARENT_ACTIVITY is necessary for API <= 15. -->
-            <meta-data
-                android:name="android.support.PARENT_ACTIVITY"
-                android:value=".MainWebViewActivity" />
         </activity>
 
         <!-- android:configChanges="orientation|screenSize" makes the activity not reload when the orientation changes.
             android:parentActivityName=".MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:persistableMode="persistNever" >
-
-            <!-- android.support.PARENT_ACTIVITY is necessary for API <= 15. -->
-            <meta-data
-                android:name="android.support.PARENT_ACTIVITY"
-                android:value=".MainWebViewActivity" />
         </activity>
 
         <!-- android:configChanges="orientation|screenSize" makes the activity not reload when the orientation changes.
             android:parentActivityName=".MainWebViewActivity"
             android:configChanges="orientation|screenSize"
             android:persistableMode="persistNever" >
-
-            <!-- android.support.PARENT_ACTIVITY is necessary for API <= 15. -->
-            <meta-data
-                android:name="android.support.PARENT_ACTIVITY"
-                android:value=".MainWebViewActivity" />
         </activity>
-
     </application>
-
 </manifest>
index 993c363b338ee4b5986b3c7f607f66ad911ca72b..534ac52dd2a386af1d9ed935f35e910e461cdd53 100644 (file)
@@ -247,19 +247,7 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
                  * SYSTEM_UI_FLAG_FULLSCREEN hides the status bar across the top of the screen.
                  * SYSTEM_UI_FLAG_IMMERSIVE_STICKY makes the navigation and status bars ghosted overlays and automatically rehides them.
                  */
-
-                // Set the one flag supported by API >= 14.
-                view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
-
-                // Set the two flags that are supported by API >= 16.
-                if (Build.VERSION.SDK_INT >= 16) {
-                    view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN);
-                }
-
-                // Set all three flags that are supported by API >= 19.
-                if (Build.VERSION.SDK_INT >= 19) {
-                    view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
-                }
+                view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
             }
 
             // Exit full screen video