diff options
Diffstat (limited to 'src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java')
-rw-r--r-- | src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java b/src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java index bb5734b57..b38e0c443 100644 --- a/src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java +++ b/src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java @@ -1,5 +1,10 @@ package de.danoeh.antennapod.activity; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.Reader; + import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; @@ -9,18 +14,15 @@ import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; + import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuItem; + import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.PodcastApp; import de.danoeh.antennapod.R; +import de.danoeh.antennapod.preferences.UserPreferences; import de.danoeh.antennapod.util.StorageUtils; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.io.Reader; - /** * Lets the user start the OPML-import process from a path */ @@ -33,7 +35,7 @@ public class OpmlImportFromPathActivity extends OpmlImportBaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { - setTheme(PodcastApp.getThemeResourceId()); + setTheme(UserPreferences.getTheme()); super.onCreate(savedInstanceState); getSupportActionBar().setDisplayHomeAsUpEnabled(true); @@ -63,7 +65,7 @@ public class OpmlImportFromPathActivity extends OpmlImportBaseActivity { * directory. */ private void setImportPath() { - File importDir = PodcastApp.getDataFolder(this, IMPORT_DIR); + File importDir = UserPreferences.getDataFolder(this, IMPORT_DIR); boolean success = true; if (!importDir.exists()) { if (AppConfig.DEBUG) |