summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/PlaybackSpeedActivityStarter.java6
-rw-r--r--ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/VideoPlayerActivityStarter.java4
-rw-r--r--ui/common/src/main/java/de/danoeh/antennapod/ui/common/TriangleLabelView.java3
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);