From: Soren Stoutner Date: Thu, 16 Jun 2016 19:26:07 +0000 (-0700) Subject: Bump minSdkVersion to 19 due to WebView security problems for API <=18. X-Git-Tag: v1.7~1 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=7f01845e3a09f0b201d42afa37049f50dcfa7dc3;p=PrivacyBrowserAndroid.git Bump minSdkVersion to 19 due to WebView security problems for API <=18. --- diff --git a/app/build.gradle b/app/build.gradle index 81cdc54f..c491207a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index fa62965d..8bc6746e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -78,11 +78,6 @@ android:parentActivityName=".MainWebViewActivity" android:configChanges="orientation|screenSize" android:persistableMode="persistNever" > - - - - - - - diff --git a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java index 993c363b..534ac52d 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java @@ -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