summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.gradle2
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java8
2 files changed, 7 insertions, 3 deletions
diff --git a/common.gradle b/common.gradle
index 65eed001c..4073875e2 100644
--- a/common.gradle
+++ b/common.gradle
@@ -44,7 +44,7 @@ android {
}
lint {
- disable "GradleDependency"
+ disable "GradleDependency", "OutdatedLibrary"
checkDependencies true
warningsAsErrors true
abortOnError true
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
index 02102db14..5a9e6f34f 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
@@ -867,8 +867,12 @@ public class PlaybackService extends MediaBrowserServiceCompat {
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
- TileService.requestListeningState(getApplicationContext(),
- new ComponentName(getApplicationContext(), QuickSettingsTileService.class));
+ try {
+ TileService.requestListeningState(getApplicationContext(),
+ new ComponentName(getApplicationContext(), QuickSettingsTileService.class));
+ } catch (IllegalArgumentException e) {
+ Log.d(TAG, "Skipping quick settings tile setup");
+ }
}
IntentUtils.sendLocalBroadcast(getApplicationContext(), ACTION_PLAYER_STATUS_CHANGED);