diff options
Diffstat (limited to 'src/de/danoeh/antennapod/PodcastApp.java')
-rw-r--r-- | src/de/danoeh/antennapod/PodcastApp.java | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/de/danoeh/antennapod/PodcastApp.java b/src/de/danoeh/antennapod/PodcastApp.java deleted file mode 100644 index 74628f3d6..000000000 --- a/src/de/danoeh/antennapod/PodcastApp.java +++ /dev/null @@ -1,47 +0,0 @@ -package de.danoeh.antennapod; - -import android.app.Application; -import android.content.res.Configuration; -import android.util.Log; -import de.danoeh.antennapod.feed.EventDistributor; -import de.danoeh.antennapod.preferences.PlaybackPreferences; -import de.danoeh.antennapod.preferences.UserPreferences; -import de.danoeh.antennapod.spa.SPAUtil; - -/** Main application class. */ -public class PodcastApp extends Application { - - private static final String TAG = "PodcastApp"; - public static final String EXPORT_DIR = "export/"; - - private static float LOGICAL_DENSITY; - - private static PodcastApp singleton; - - public static PodcastApp getInstance() { - return singleton; - } - - @Override - public void onCreate() { - super.onCreate(); - singleton = this; - LOGICAL_DENSITY = getResources().getDisplayMetrics().density; - - UserPreferences.createInstance(this); - PlaybackPreferences.createInstance(this); - EventDistributor.getInstance(); - - SPAUtil.sendSPAppsQueryFeedsIntent(this); - } - - public static float getLogicalDensity() { - return LOGICAL_DENSITY; - } - - public boolean isLargeScreen() { - return (getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE - || (getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE; - - } -} |