Merge pull request #1626 from mfietz/replace_prestissimo_with_sonic
Switch Prestissimo users to Sonic
This commit is contained in:
commit
e00f08963b
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="de.danoeh.antennapod"
|
||||
android:versionCode="1050003"
|
||||
android:versionName="1.5.0.3">
|
||||
android:versionCode="1050004"
|
||||
android:versionName="1.5.0.4">
|
||||
<!--
|
||||
Version code schema:
|
||||
"1.2.3-SNAPSHOT" -> 1020300
|
||||
|
|
|
@ -57,8 +57,8 @@ public class PodcastApp extends Application {
|
|||
singleton = this;
|
||||
|
||||
PodDBAdapter.init(this);
|
||||
UpdateManager.init(this);
|
||||
UserPreferences.init(this);
|
||||
UpdateManager.init(this);
|
||||
PlaybackPreferences.init(this);
|
||||
NetworkUtils.init(this);
|
||||
EventDistributor.getInstance();
|
||||
|
|
|
@ -5,14 +5,18 @@ import android.content.Context;
|
|||
import android.content.SharedPreferences;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.Build;
|
||||
import android.util.Log;
|
||||
|
||||
import org.antennapod.audio.MediaPlayer;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
import de.danoeh.antennapod.core.feed.Feed;
|
||||
import de.danoeh.antennapod.core.feed.FeedImage;
|
||||
import de.danoeh.antennapod.core.feed.FeedItem;
|
||||
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||
import de.danoeh.antennapod.core.storage.DBReader;
|
||||
import de.danoeh.antennapod.core.storage.DBWriter;
|
||||
|
||||
|
@ -83,6 +87,11 @@ public class UpdateManager {
|
|||
}
|
||||
}.start();
|
||||
}
|
||||
if(oldVersionCode < 1050004) {
|
||||
if(MediaPlayer.isPrestoLibraryInstalled(context) && Build.VERSION.SDK_INT >= 16) {
|
||||
UserPreferences.enableSonic(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue