From 5e842299181000dea688b886abee3d56ca446e13 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 27 Jan 2020 09:09:14 +0100 Subject: [PATCH] Enable PiP by default --- .../de/danoeh/antennapod/preferences/PreferenceUpgrader.java | 3 +++ app/src/main/res/xml/preferences_playback.xml | 2 +- .../danoeh/antennapod/core/preferences/UserPreferences.java | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java index 4686f0303..e791efe98 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java @@ -84,5 +84,8 @@ public class PreferenceUpgrader { UserPreferences.setEnqueueLocation(enqueueLocation); } } + if (oldVersion < 1080100) { + prefs.edit().putString(UserPreferences.PREF_VIDEO_BEHAVIOR, "pip").apply(); + } } } diff --git a/app/src/main/res/xml/preferences_playback.xml b/app/src/main/res/xml/preferences_playback.xml index 7a7535dda..32bf383d7 100644 --- a/app/src/main/res/xml/preferences_playback.xml +++ b/app/src/main/res/xml/preferences_playback.xml @@ -35,7 +35,7 @@ android:summary="@string/pref_resumeAfterCall_sum" android:title="@string/pref_resumeAfterCall_title"/>