diff options
author | ByteHamster <info@bytehamster.com> | 2022-12-18 13:48:31 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-12-18 15:01:59 +0100 |
commit | d8d6f1c72f0aad452eb88f002dd11995bc1230f9 (patch) | |
tree | 184ca8046c438cdfb502c6a74b45ceb8870e6257 /ui | |
parent | 1d251492b08ca17852e4a8bb5b0a9638443da9b2 (diff) | |
download | AntennaPod-d8d6f1c72f0aad452eb88f002dd11995bc1230f9.zip |
Remove support for Android 4.4
Diffstat (limited to 'ui')
3 files changed, 2 insertions, 11 deletions
diff --git a/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/PlaybackSpeedActivityStarter.java b/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/PlaybackSpeedActivityStarter.java index ac7e72a4e..b8cf6d6ce 100644 --- a/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/PlaybackSpeedActivityStarter.java +++ b/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/PlaybackSpeedActivityStarter.java @@ -18,11 +18,7 @@ public class PlaybackSpeedActivityStarter { this.context = context; intent = new Intent(INTENT); intent.setPackage(context.getPackageName()); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); - } else { - intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); - } + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); } public Intent getIntent() { diff --git a/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/VideoPlayerActivityStarter.java b/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/VideoPlayerActivityStarter.java index 53f8719de..7245e2c68 100644 --- a/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/VideoPlayerActivityStarter.java +++ b/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/VideoPlayerActivityStarter.java @@ -18,9 +18,7 @@ public class VideoPlayerActivityStarter { this.context = context; intent = new Intent(INTENT); intent.setPackage(context.getPackageName()); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); - } + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); } public Intent getIntent() { diff --git a/ui/common/src/main/java/de/danoeh/antennapod/ui/common/TriangleLabelView.java b/ui/common/src/main/java/de/danoeh/antennapod/ui/common/TriangleLabelView.java index ff6342655..97bcede2f 100644 --- a/ui/common/src/main/java/de/danoeh/antennapod/ui/common/TriangleLabelView.java +++ b/ui/common/src/main/java/de/danoeh/antennapod/ui/common/TriangleLabelView.java @@ -20,7 +20,6 @@ package de.danoeh.antennapod.ui.common; import android.annotation.SuppressLint; -import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; @@ -29,7 +28,6 @@ import android.graphics.Paint; import android.graphics.Path; import android.graphics.Rect; import android.graphics.Typeface; -import android.os.Build; import android.util.AttributeSet; import android.view.View; @@ -60,7 +58,6 @@ public class TriangleLabelView extends View { init(context, attrs); } - @TargetApi(Build.VERSION_CODES.LOLLIPOP) public TriangleLabelView(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); |