aboutsummaryrefslogtreecommitdiff
path: root/tools/android/packaging
diff options
context:
space:
mode:
authorJose Luis Marti <joseluis.marti@gmail.com>2024-04-02 16:34:13 +0200
committerJose Luis Marti <joseluis.marti@gmail.com>2024-04-04 09:26:27 +0200
commit150292bc27f1d50c3a86cb5a04197615daf070fb (patch)
tree804c70a1dbb7bca2ee5c6c2bfc2254038f966c56 /tools/android/packaging
parent29e78e56830187b8950afc401404b4f86add7ac4 (diff)
Remove backward compatibility code
Diffstat (limited to 'tools/android/packaging')
-rw-r--r--tools/android/packaging/xbmc/src/Splash.java.in11
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;
}