diff options
Diffstat (limited to 'tools/android/packaging')
-rw-r--r-- | tools/android/packaging/xbmc/src/Splash.java.in | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/android/packaging/xbmc/src/Splash.java.in b/tools/android/packaging/xbmc/src/Splash.java.in index ddc3291cd8..19e33a676f 100644 --- a/tools/android/packaging/xbmc/src/Splash.java.in +++ b/tools/android/packaging/xbmc/src/Splash.java.in @@ -397,11 +397,7 @@ public class Splash extends Activity AlertDialog.Builder builder = new AlertDialog.Builder(act); builder.setTitle(title); builder.setIcon(android.R.drawable.ic_dialog_alert); - if (Build.VERSION.SDK_INT >= 24) { - builder.setMessage(Html.fromHtml(message, Html.FROM_HTML_MODE_LEGACY)); - } else { - builder.setMessage(Html.fromHtml(message)); - } + builder.setMessage(Html.fromHtml(message, Html.FROM_HTML_MODE_LEGACY)); builder.setPositiveButton("Exit", (dialog, arg1) -> { dialog.dismiss(); act.finish(); @@ -514,16 +510,13 @@ public class Splash extends Activity retVal = true; } } - else if (Build.VERSION.SDK_INT > 22) + else { int permissionCheck; permissionCheck = checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE); if (permissionCheck == PERMISSION_GRANTED) retVal = true; } - else - retVal= true; - return retVal; } |