From 7a687583a23f880f8f5b7eedefbff4be188395f6 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sat, 22 Sep 2012 12:46:36 +0200 Subject: [PATCH] Removed unused imports --- .../antennapod/activity/AddFeedActivity.java | 6 --- .../antennapod/activity/DownloadActivity.java | 3 -- .../antennapod/activity/FeedInfoActivity.java | 4 +- .../activity/FeedItemlistActivity.java | 1 - .../activity/FlattrAuthActivity.java | 2 +- .../antennapod/activity/ItemviewActivity.java | 1 - .../antennapod/activity/MainActivity.java | 6 +-- .../activity/MediaplayerActivity.java | 2 +- .../activity/StorageErrorActivity.java | 2 +- .../adapter/ChapterListAdapter.java | 1 - .../adapter/DownloadLogAdapter.java | 3 +- .../adapter/DownloadlistAdapter.java | 2 +- .../adapter/FeedItemlistAdapter.java | 32 +++++++-------- .../antennapod/adapter/FeedlistAdapter.java | 15 ++----- .../adapter/MiroGuideChannelListAdapter.java | 2 - .../asynctask/BitmapDecodeWorkerTask.java | 3 -- .../antennapod/asynctask/DownloadStatus.java | 4 -- .../antennapod/asynctask/FeedRemover.java | 4 +- .../antennapod/asynctask/OpmlFeedQueuer.java | 8 ++-- .../asynctask/OpmlImportWorker.java | 10 ++--- src/de/danoeh/antennapod/feed/FeedItem.java | 1 - .../danoeh/antennapod/feed/FeedManager.java | 20 +++++----- .../danoeh/antennapod/feed/FeedSearcher.java | 1 - .../antennapod/fragment/CoverFragment.java | 2 +- .../antennapod/fragment/FeedlistFragment.java | 40 +++++++++---------- .../fragment/ItemDescriptionFragment.java | 3 -- .../antennapod/fragment/ItemlistFragment.java | 9 +---- .../MiroGuideChannellistFragment.java | 1 - .../antennapod/fragment/QueueFragment.java | 6 +-- .../fragment/UnreadItemlistFragment.java | 9 ++--- .../miroguide/con/MiroGuideConnector.java | 1 - src/de/danoeh/antennapod/opml/OpmlWriter.java | 1 - .../receiver/FeedUpdateReceiver.java | 6 +-- .../receiver/MediaButtonReceiver.java | 7 +--- .../antennapod/receiver/PlayerWidget.java | 4 +- .../antennapod/service/PlaybackService.java | 1 - .../service/PlayerWidgetService.java | 5 +-- .../service/download/DownloadService.java | 2 - .../service/download/Downloader.java | 4 +- .../antennapod/storage/PodDBAdapter.java | 1 - .../syndication/handler/HandlerState.java | 1 - .../syndication/handler/SyndHandler.java | 1 - .../syndication/handler/TypeGetter.java | 1 - .../syndication/namespace/Namespace.java | 1 - .../syndication/namespace/atom/NSAtom.java | 3 -- .../namespace/content/NSContent.java | 3 -- .../syndication/namespace/rss20/NSRSS20.java | 12 +----- .../danoeh/antennapod/util/BitmapDecoder.java | 2 +- .../danoeh/antennapod/util/ChapterUtils.java | 2 - .../antennapod/util/ConnectionTester.java | 5 +-- .../antennapod/util/MediaPlayerError.java | 2 +- .../antennapod/util/NumberGenerator.java | 2 - .../antennapod/util/PlaybackController.java | 1 - src/de/danoeh/antennapod/util/ShareUtils.java | 4 +- .../danoeh/antennapod/util/StorageUtils.java | 2 +- src/de/danoeh/antennapod/util/URLChecker.java | 2 +- .../util/flattr/FlattrServiceCreator.java | 3 +- .../antennapod/util/flattr/FlattrUtils.java | 5 --- .../util/menuhandler/FeedMenuHandler.java | 6 +-- 59 files changed, 96 insertions(+), 197 deletions(-) diff --git a/src/de/danoeh/antennapod/activity/AddFeedActivity.java b/src/de/danoeh/antennapod/activity/AddFeedActivity.java index 1502ee13b..8670e0cd1 100644 --- a/src/de/danoeh/antennapod/activity/AddFeedActivity.java +++ b/src/de/danoeh/antennapod/activity/AddFeedActivity.java @@ -4,11 +4,8 @@ import java.util.Date; import android.app.AlertDialog; import android.app.ProgressDialog; -import android.content.BroadcastReceiver; -import android.content.Context; import android.content.DialogInterface; import android.content.Intent; -import android.content.IntentFilter; import android.os.Bundle; import android.util.Log; import android.view.View; @@ -22,10 +19,7 @@ import com.actionbarsherlock.view.MenuItem; import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.R; -import de.danoeh.antennapod.asynctask.DownloadStatus; import de.danoeh.antennapod.feed.Feed; -import de.danoeh.antennapod.feed.FeedManager; -import de.danoeh.antennapod.service.download.DownloadService; import de.danoeh.antennapod.storage.DownloadRequester; import de.danoeh.antennapod.util.ConnectionTester; import de.danoeh.antennapod.util.DownloadError; diff --git a/src/de/danoeh/antennapod/activity/DownloadActivity.java b/src/de/danoeh/antennapod/activity/DownloadActivity.java index 488288255..d21fb1f91 100644 --- a/src/de/danoeh/antennapod/activity/DownloadActivity.java +++ b/src/de/danoeh/antennapod/activity/DownloadActivity.java @@ -1,7 +1,5 @@ package de.danoeh.antennapod.activity; -import java.util.List; - import android.annotation.SuppressLint; import android.content.BroadcastReceiver; import android.content.ComponentName; @@ -27,7 +25,6 @@ import de.danoeh.antennapod.R; import de.danoeh.antennapod.adapter.DownloadlistAdapter; import de.danoeh.antennapod.asynctask.DownloadStatus; import de.danoeh.antennapod.service.download.DownloadService; -import de.danoeh.antennapod.service.download.Downloader; import de.danoeh.antennapod.storage.DownloadRequester; /** diff --git a/src/de/danoeh/antennapod/activity/FeedInfoActivity.java b/src/de/danoeh/antennapod/activity/FeedInfoActivity.java index c92c6c46a..af91fc296 100644 --- a/src/de/danoeh/antennapod/activity/FeedInfoActivity.java +++ b/src/de/danoeh/antennapod/activity/FeedInfoActivity.java @@ -10,13 +10,13 @@ import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.R; import de.danoeh.antennapod.asynctask.FeedImageLoader; import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedManager; import de.danoeh.antennapod.util.LangUtils; import de.danoeh.antennapod.util.menuhandler.FeedMenuHandler; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.R; /** Displays information about a feed. */ public class FeedInfoActivity extends SherlockActivity { diff --git a/src/de/danoeh/antennapod/activity/FeedItemlistActivity.java b/src/de/danoeh/antennapod/activity/FeedItemlistActivity.java index 3a9c4abed..a134cd23b 100644 --- a/src/de/danoeh/antennapod/activity/FeedItemlistActivity.java +++ b/src/de/danoeh/antennapod/activity/FeedItemlistActivity.java @@ -3,7 +3,6 @@ package de.danoeh.antennapod.activity; import android.annotation.SuppressLint; import android.content.DialogInterface; import android.content.Intent; -import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; diff --git a/src/de/danoeh/antennapod/activity/FlattrAuthActivity.java b/src/de/danoeh/antennapod/activity/FlattrAuthActivity.java index bc783946b..730efb8ac 100644 --- a/src/de/danoeh/antennapod/activity/FlattrAuthActivity.java +++ b/src/de/danoeh/antennapod/activity/FlattrAuthActivity.java @@ -16,9 +16,9 @@ import com.actionbarsherlock.app.SherlockActivity; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuItem; -import de.danoeh.antennapod.util.flattr.FlattrUtils; import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.R; +import de.danoeh.antennapod.util.flattr.FlattrUtils; /** Guides the user through the authentication process */ diff --git a/src/de/danoeh/antennapod/activity/ItemviewActivity.java b/src/de/danoeh/antennapod/activity/ItemviewActivity.java index dbcb86656..2ba1f3579 100644 --- a/src/de/danoeh/antennapod/activity/ItemviewActivity.java +++ b/src/de/danoeh/antennapod/activity/ItemviewActivity.java @@ -2,7 +2,6 @@ package de.danoeh.antennapod.activity; import java.text.DateFormat; -import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; diff --git a/src/de/danoeh/antennapod/activity/MainActivity.java b/src/de/danoeh/antennapod/activity/MainActivity.java index 4c9b58003..77544af47 100644 --- a/src/de/danoeh/antennapod/activity/MainActivity.java +++ b/src/de/danoeh/antennapod/activity/MainActivity.java @@ -7,8 +7,8 @@ import android.content.IntentFilter; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentTransaction; import android.support.v4.app.FragmentStatePagerAdapter; +import android.support.v4.app.FragmentTransaction; import android.support.v4.view.ViewPager; import android.util.Log; @@ -19,6 +19,8 @@ import com.actionbarsherlock.view.MenuItem; import com.actionbarsherlock.view.Window; import com.viewpagerindicator.TabPageIndicator; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.R; import de.danoeh.antennapod.asynctask.OpmlExportWorker; import de.danoeh.antennapod.feed.FeedManager; import de.danoeh.antennapod.fragment.ExternalPlayerFragment; @@ -29,8 +31,6 @@ import de.danoeh.antennapod.service.PlaybackService; import de.danoeh.antennapod.service.download.DownloadService; import de.danoeh.antennapod.storage.DownloadRequester; import de.danoeh.antennapod.util.StorageUtils; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.R; /** The activity that is shown when the user launches the app. */ public class MainActivity extends SherlockFragmentActivity { diff --git a/src/de/danoeh/antennapod/activity/MediaplayerActivity.java b/src/de/danoeh/antennapod/activity/MediaplayerActivity.java index e518de86c..4bb6dc74a 100644 --- a/src/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/src/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -9,8 +9,8 @@ import android.os.Bundle; import android.util.Log; import android.widget.ImageButton; import android.widget.SeekBar; -import android.widget.TextView; import android.widget.SeekBar.OnSeekBarChangeListener; +import android.widget.TextView; import com.actionbarsherlock.app.SherlockFragmentActivity; import com.actionbarsherlock.view.Menu; diff --git a/src/de/danoeh/antennapod/activity/StorageErrorActivity.java b/src/de/danoeh/antennapod/activity/StorageErrorActivity.java index 817a3b17f..e5c7bd40f 100644 --- a/src/de/danoeh/antennapod/activity/StorageErrorActivity.java +++ b/src/de/danoeh/antennapod/activity/StorageErrorActivity.java @@ -9,9 +9,9 @@ import android.util.Log; import com.actionbarsherlock.app.SherlockActivity; -import de.danoeh.antennapod.util.StorageUtils; import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.R; +import de.danoeh.antennapod.util.StorageUtils; /** Is show if there is now external storage available. */ public class StorageErrorActivity extends SherlockActivity { diff --git a/src/de/danoeh/antennapod/adapter/ChapterListAdapter.java b/src/de/danoeh/antennapod/adapter/ChapterListAdapter.java index e13b930eb..16a868437 100644 --- a/src/de/danoeh/antennapod/adapter/ChapterListAdapter.java +++ b/src/de/danoeh/antennapod/adapter/ChapterListAdapter.java @@ -21,7 +21,6 @@ import android.widget.ArrayAdapter; import android.widget.TextView; import de.danoeh.antennapod.R; import de.danoeh.antennapod.feed.Chapter; -import de.danoeh.antennapod.feed.SimpleChapter; import de.danoeh.antennapod.util.Converter; public class ChapterListAdapter extends ArrayAdapter { diff --git a/src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java b/src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java index 2e6ec4bb5..ce339be88 100644 --- a/src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java +++ b/src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java @@ -4,20 +4,19 @@ import java.text.DateFormat; import java.util.List; import android.content.Context; -import android.graphics.Color; import android.text.format.DateUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; +import de.danoeh.antennapod.R; import de.danoeh.antennapod.asynctask.DownloadStatus; import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedFile; import de.danoeh.antennapod.feed.FeedImage; import de.danoeh.antennapod.feed.FeedMedia; import de.danoeh.antennapod.util.DownloadError; -import de.danoeh.antennapod.R; /** Displays a list of DownloadStatus entries. */ public class DownloadLogAdapter extends ArrayAdapter { diff --git a/src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java b/src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java index 94f810423..52b2207f9 100644 --- a/src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java +++ b/src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java @@ -9,6 +9,7 @@ import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ProgressBar; import android.widget.TextView; +import de.danoeh.antennapod.R; import de.danoeh.antennapod.asynctask.DownloadStatus; import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedFile; @@ -16,7 +17,6 @@ import de.danoeh.antennapod.feed.FeedImage; import de.danoeh.antennapod.feed.FeedMedia; import de.danoeh.antennapod.service.download.Downloader; import de.danoeh.antennapod.util.Converter; -import de.danoeh.antennapod.R; public class DownloadlistAdapter extends ArrayAdapter { private int selectedItemIndex; diff --git a/src/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java b/src/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java index e6824b122..403204eaf 100644 --- a/src/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java +++ b/src/de/danoeh/antennapod/adapter/FeedItemlistAdapter.java @@ -3,28 +3,26 @@ package de.danoeh.antennapod.adapter; import java.text.DateFormat; import java.util.List; -import de.danoeh.antennapod.feed.FeedItem; -import de.danoeh.antennapod.feed.FeedManager; -import de.danoeh.antennapod.storage.DownloadRequester; -import de.danoeh.antennapod.util.Converter; -import de.danoeh.antennapod.util.EpisodeFilter; -import de.danoeh.antennapod.PodcastApp; -import de.danoeh.antennapod.R; -import android.widget.Adapter; -import android.widget.ArrayAdapter; -import android.widget.Button; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.RelativeLayout; -import android.widget.TextView; +import android.content.Context; +import android.graphics.Typeface; import android.text.format.DateUtils; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; -import android.content.Context; -import android.graphics.Color; -import android.graphics.Typeface; +import android.widget.Adapter; +import android.widget.ArrayAdapter; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.RelativeLayout; +import android.widget.TextView; +import de.danoeh.antennapod.PodcastApp; +import de.danoeh.antennapod.R; +import de.danoeh.antennapod.feed.FeedItem; +import de.danoeh.antennapod.feed.FeedManager; +import de.danoeh.antennapod.storage.DownloadRequester; +import de.danoeh.antennapod.util.Converter; +import de.danoeh.antennapod.util.EpisodeFilter; public class FeedItemlistAdapter extends ArrayAdapter { private OnClickListener onButActionClicked; diff --git a/src/de/danoeh/antennapod/adapter/FeedlistAdapter.java b/src/de/danoeh/antennapod/adapter/FeedlistAdapter.java index 76723e414..93aa2443e 100644 --- a/src/de/danoeh/antennapod/adapter/FeedlistAdapter.java +++ b/src/de/danoeh/antennapod/adapter/FeedlistAdapter.java @@ -1,27 +1,20 @@ package de.danoeh.antennapod.adapter; -import java.io.File; import java.text.DateFormat; import java.util.List; -import de.danoeh.antennapod.asynctask.FeedImageLoader; -import de.danoeh.antennapod.feed.Feed; -import de.danoeh.antennapod.storage.DownloadRequester; -import de.danoeh.antennapod.PodcastApp; -import de.danoeh.antennapod.R; import android.content.Context; -import android.net.Uri; import android.text.format.DateUtils; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; -import android.widget.LinearLayout; import android.widget.TextView; -import android.graphics.BitmapFactory; -import android.graphics.Color; +import de.danoeh.antennapod.R; +import de.danoeh.antennapod.asynctask.FeedImageLoader; +import de.danoeh.antennapod.feed.Feed; +import de.danoeh.antennapod.storage.DownloadRequester; public class FeedlistAdapter extends ArrayAdapter { private static final String TAG = "FeedlistAdapter"; diff --git a/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java b/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java index 872f7533a..0ac58e7a4 100644 --- a/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java +++ b/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java @@ -7,10 +7,8 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; -import android.widget.ImageView; import android.widget.TextView; import de.danoeh.antennapod.R; -import de.danoeh.antennapod.asynctask.FeedImageLoader; import de.danoeh.antennapod.miroguide.model.MiroGuideChannel; public class MiroGuideChannelListAdapter extends ArrayAdapter { diff --git a/src/de/danoeh/antennapod/asynctask/BitmapDecodeWorkerTask.java b/src/de/danoeh/antennapod/asynctask/BitmapDecodeWorkerTask.java index 66341dfde..d884d87a8 100644 --- a/src/de/danoeh/antennapod/asynctask/BitmapDecodeWorkerTask.java +++ b/src/de/danoeh/antennapod/asynctask/BitmapDecodeWorkerTask.java @@ -2,15 +2,12 @@ package de.danoeh.antennapod.asynctask; import java.io.File; -import android.annotation.SuppressLint; import android.graphics.Bitmap; import android.graphics.BitmapFactory; -import android.os.AsyncTask; import android.os.Handler; import android.util.Log; import android.widget.ImageView; import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.PodcastApp; import de.danoeh.antennapod.R; import de.danoeh.antennapod.util.BitmapDecoder; diff --git a/src/de/danoeh/antennapod/asynctask/DownloadStatus.java b/src/de/danoeh/antennapod/asynctask/DownloadStatus.java index 3d63026eb..d9b6a7850 100644 --- a/src/de/danoeh/antennapod/asynctask/DownloadStatus.java +++ b/src/de/danoeh/antennapod/asynctask/DownloadStatus.java @@ -2,11 +2,7 @@ package de.danoeh.antennapod.asynctask; import java.util.Date; -import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedFile; -import de.danoeh.antennapod.feed.FeedImage; -import de.danoeh.antennapod.feed.FeedItem; -import de.danoeh.antennapod.storage.PodDBAdapter; /** Contains status attributes for one download */ public class DownloadStatus { diff --git a/src/de/danoeh/antennapod/asynctask/FeedRemover.java b/src/de/danoeh/antennapod/asynctask/FeedRemover.java index 6808bfdf7..829a14602 100644 --- a/src/de/danoeh/antennapod/asynctask/FeedRemover.java +++ b/src/de/danoeh/antennapod/asynctask/FeedRemover.java @@ -1,13 +1,13 @@ package de.danoeh.antennapod.asynctask; -import de.danoeh.antennapod.feed.Feed; -import de.danoeh.antennapod.feed.FeedManager; import android.annotation.SuppressLint; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.os.AsyncTask; +import de.danoeh.antennapod.feed.Feed; +import de.danoeh.antennapod.feed.FeedManager; /** Removes a feed in the background. */ public class FeedRemover extends AsyncTask { diff --git a/src/de/danoeh/antennapod/asynctask/OpmlFeedQueuer.java b/src/de/danoeh/antennapod/asynctask/OpmlFeedQueuer.java index 761a4c804..e244432ef 100644 --- a/src/de/danoeh/antennapod/asynctask/OpmlFeedQueuer.java +++ b/src/de/danoeh/antennapod/asynctask/OpmlFeedQueuer.java @@ -2,15 +2,15 @@ package de.danoeh.antennapod.asynctask; import java.util.Date; +import android.annotation.SuppressLint; +import android.app.ProgressDialog; +import android.content.Context; +import android.os.AsyncTask; import de.danoeh.antennapod.R; import de.danoeh.antennapod.activity.OpmlImportActivity; import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.opml.OpmlElement; import de.danoeh.antennapod.storage.DownloadRequester; -import android.annotation.SuppressLint; -import android.app.ProgressDialog; -import android.content.Context; -import android.os.AsyncTask; /** Queues items for download in the background. */ public class OpmlFeedQueuer extends AsyncTask { diff --git a/src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java b/src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java index 1deff49ee..7498b93de 100644 --- a/src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java +++ b/src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java @@ -8,20 +8,18 @@ import java.util.ArrayList; import org.xmlpull.v1.XmlPullParserException; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.R; -import de.danoeh.antennapod.opml.OpmlElement; -import de.danoeh.antennapod.opml.OpmlReader; - import android.annotation.SuppressLint; import android.app.AlertDialog; import android.app.ProgressDialog; -import android.app.AlertDialog.Builder; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.os.AsyncTask; import android.util.Log; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.R; +import de.danoeh.antennapod.opml.OpmlElement; +import de.danoeh.antennapod.opml.OpmlReader; public class OpmlImportWorker extends AsyncTask> { diff --git a/src/de/danoeh/antennapod/feed/FeedItem.java b/src/de/danoeh/antennapod/feed/FeedItem.java index 3fa9a66b8..39a40e799 100644 --- a/src/de/danoeh/antennapod/feed/FeedItem.java +++ b/src/de/danoeh/antennapod/feed/FeedItem.java @@ -1,6 +1,5 @@ package de.danoeh.antennapod.feed; -import java.util.ArrayList; import java.util.Date; import java.util.List; diff --git a/src/de/danoeh/antennapod/feed/FeedManager.java b/src/de/danoeh/antennapod/feed/FeedManager.java index 1c6d7036f..9c056b940 100644 --- a/src/de/danoeh/antennapod/feed/FeedManager.java +++ b/src/de/danoeh/antennapod/feed/FeedManager.java @@ -9,25 +9,23 @@ import java.util.concurrent.Executor; import java.util.concurrent.Executors; import java.util.concurrent.ThreadFactory; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.PodcastApp; -import de.danoeh.antennapod.activity.AudioplayerActivity; -import de.danoeh.antennapod.asynctask.DownloadStatus; -import de.danoeh.antennapod.service.PlaybackService; -import de.danoeh.antennapod.storage.*; -import de.danoeh.antennapod.util.FeedtitleComparator; -import de.danoeh.antennapod.util.comparator.DownloadStatusComparator; -import de.danoeh.antennapod.util.comparator.FeedItemPubdateComparator; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.os.AsyncTask; -import android.os.Debug; import android.os.Handler; -import android.os.Message; import android.preference.PreferenceManager; import android.util.Log; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.PodcastApp; +import de.danoeh.antennapod.asynctask.DownloadStatus; +import de.danoeh.antennapod.service.PlaybackService; +import de.danoeh.antennapod.storage.DownloadRequester; +import de.danoeh.antennapod.storage.PodDBAdapter; +import de.danoeh.antennapod.util.FeedtitleComparator; +import de.danoeh.antennapod.util.comparator.DownloadStatusComparator; +import de.danoeh.antennapod.util.comparator.FeedItemPubdateComparator; /** * Singleton class Manages all feeds, categories and feeditems diff --git a/src/de/danoeh/antennapod/feed/FeedSearcher.java b/src/de/danoeh/antennapod/feed/FeedSearcher.java index 0948af71b..f53ff5ae7 100644 --- a/src/de/danoeh/antennapod/feed/FeedSearcher.java +++ b/src/de/danoeh/antennapod/feed/FeedSearcher.java @@ -6,7 +6,6 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; import android.util.Log; - import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.PodcastApp; import de.danoeh.antennapod.R; diff --git a/src/de/danoeh/antennapod/fragment/CoverFragment.java b/src/de/danoeh/antennapod/fragment/CoverFragment.java index 062924696..d9a6bdd42 100644 --- a/src/de/danoeh/antennapod/fragment/CoverFragment.java +++ b/src/de/danoeh/antennapod/fragment/CoverFragment.java @@ -10,12 +10,12 @@ import android.widget.TextView; import com.actionbarsherlock.app.SherlockFragment; +import de.danoeh.antennapod.R; import de.danoeh.antennapod.asynctask.FeedImageLoader; import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedItem; import de.danoeh.antennapod.feed.FeedManager; import de.danoeh.antennapod.feed.FeedMedia; -import de.danoeh.antennapod.R; /** Displays the cover and the title of a FeedItem. */ public class CoverFragment extends SherlockFragment { diff --git a/src/de/danoeh/antennapod/fragment/FeedlistFragment.java b/src/de/danoeh/antennapod/fragment/FeedlistFragment.java index 038b16f36..6df922554 100644 --- a/src/de/danoeh/antennapod/fragment/FeedlistFragment.java +++ b/src/de/danoeh/antennapod/fragment/FeedlistFragment.java @@ -1,41 +1,39 @@ package de.danoeh.antennapod.fragment; -import de.danoeh.antennapod.activity.*; -import de.danoeh.antennapod.adapter.FeedlistAdapter; -import de.danoeh.antennapod.asynctask.FeedRemover; -import de.danoeh.antennapod.dialog.ConfirmationDialog; -import de.danoeh.antennapod.feed.*; -import de.danoeh.antennapod.service.download.DownloadService; -import de.danoeh.antennapod.storage.DownloadRequester; -import de.danoeh.antennapod.util.menuhandler.FeedMenuHandler; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.R; -import android.os.AsyncTask; -import android.os.Bundle; import android.annotation.SuppressLint; import android.app.Activity; -import android.view.View; -import android.view.ViewGroup; -import android.view.LayoutInflater; +import android.content.BroadcastReceiver; +import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; -import android.content.BroadcastReceiver; -import android.content.Context; +import android.os.Bundle; +import android.util.Log; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; import android.widget.AdapterView; -import android.widget.AdapterView.OnItemLongClickListener; import android.widget.GridView; import android.widget.ListView; import android.widget.TextView; import com.actionbarsherlock.app.SherlockFragment; -import com.actionbarsherlock.app.SherlockListFragment; import com.actionbarsherlock.app.SherlockFragmentActivity; import com.actionbarsherlock.view.ActionMode; import com.actionbarsherlock.view.Menu; -import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; -import android.util.Log; + +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.R; +import de.danoeh.antennapod.activity.FeedItemlistActivity; +import de.danoeh.antennapod.adapter.FeedlistAdapter; +import de.danoeh.antennapod.asynctask.FeedRemover; +import de.danoeh.antennapod.dialog.ConfirmationDialog; +import de.danoeh.antennapod.feed.Feed; +import de.danoeh.antennapod.feed.FeedManager; +import de.danoeh.antennapod.service.download.DownloadService; +import de.danoeh.antennapod.storage.DownloadRequester; +import de.danoeh.antennapod.util.menuhandler.FeedMenuHandler; public class FeedlistFragment extends SherlockFragment implements ActionMode.Callback, AdapterView.OnItemClickListener, diff --git a/src/de/danoeh/antennapod/fragment/ItemDescriptionFragment.java b/src/de/danoeh/antennapod/fragment/ItemDescriptionFragment.java index ed10195d7..b05df96b2 100644 --- a/src/de/danoeh/antennapod/fragment/ItemDescriptionFragment.java +++ b/src/de/danoeh/antennapod/fragment/ItemDescriptionFragment.java @@ -1,8 +1,5 @@ package de.danoeh.antennapod.fragment; -import java.io.UnsupportedEncodingException; -import java.net.URLEncoder; - import org.apache.commons.lang3.StringEscapeUtils; import android.annotation.SuppressLint; diff --git a/src/de/danoeh/antennapod/fragment/ItemlistFragment.java b/src/de/danoeh/antennapod/fragment/ItemlistFragment.java index 7ce6fedd0..5ba83183a 100644 --- a/src/de/danoeh/antennapod/fragment/ItemlistFragment.java +++ b/src/de/danoeh/antennapod/fragment/ItemlistFragment.java @@ -1,6 +1,5 @@ package de.danoeh.antennapod.fragment; -import java.util.ArrayList; import java.util.List; import android.content.BroadcastReceiver; @@ -8,7 +7,6 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; -import android.preference.PreferenceManager; import android.util.Log; import android.view.LayoutInflater; import android.view.View; @@ -19,9 +17,10 @@ import android.widget.ListView; import com.actionbarsherlock.app.SherlockListFragment; import com.actionbarsherlock.view.ActionMode; import com.actionbarsherlock.view.Menu; -import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.R; import de.danoeh.antennapod.activity.ItemviewActivity; import de.danoeh.antennapod.adapter.FeedItemlistAdapter; import de.danoeh.antennapod.feed.Feed; @@ -29,11 +28,7 @@ import de.danoeh.antennapod.feed.FeedItem; import de.danoeh.antennapod.feed.FeedManager; import de.danoeh.antennapod.service.download.DownloadService; import de.danoeh.antennapod.storage.DownloadRequester; -import de.danoeh.antennapod.util.EpisodeFilter; import de.danoeh.antennapod.util.menuhandler.FeedItemMenuHandler; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.PodcastApp; -import de.danoeh.antennapod.R; /** Displays a list of FeedItems. */ public class ItemlistFragment extends SherlockListFragment implements diff --git a/src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java b/src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java index 0c7f2425c..ac12cce3d 100644 --- a/src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java +++ b/src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java @@ -23,7 +23,6 @@ import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.R; import de.danoeh.antennapod.activity.MiroGuideChannelViewActivity; import de.danoeh.antennapod.adapter.MiroGuideChannelListAdapter; -import de.danoeh.antennapod.asynctask.FeedImageLoader; import de.danoeh.antennapod.miroguide.con.MiroGuideException; import de.danoeh.antennapod.miroguide.con.MiroGuideService; import de.danoeh.antennapod.miroguide.model.MiroGuideChannel; diff --git a/src/de/danoeh/antennapod/fragment/QueueFragment.java b/src/de/danoeh/antennapod/fragment/QueueFragment.java index ed0a6408e..2c712c464 100644 --- a/src/de/danoeh/antennapod/fragment/QueueFragment.java +++ b/src/de/danoeh/antennapod/fragment/QueueFragment.java @@ -1,9 +1,5 @@ package de.danoeh.antennapod.fragment; -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; import android.os.Bundle; import com.actionbarsherlock.view.ActionMode; @@ -11,8 +7,8 @@ import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; -import de.danoeh.antennapod.feed.FeedManager; import de.danoeh.antennapod.R; +import de.danoeh.antennapod.feed.FeedManager; public class QueueFragment extends ItemlistFragment { private static final String TAG = "QueueFragment"; diff --git a/src/de/danoeh/antennapod/fragment/UnreadItemlistFragment.java b/src/de/danoeh/antennapod/fragment/UnreadItemlistFragment.java index e5e539c81..b37d1f09e 100644 --- a/src/de/danoeh/antennapod/fragment/UnreadItemlistFragment.java +++ b/src/de/danoeh/antennapod/fragment/UnreadItemlistFragment.java @@ -1,16 +1,13 @@ package de.danoeh.antennapod.fragment; +import android.os.Bundle; + import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.os.Bundle; -import de.danoeh.antennapod.feed.FeedManager; import de.danoeh.antennapod.R; +import de.danoeh.antennapod.feed.FeedManager; /** Contains all unread items. */ public class UnreadItemlistFragment extends ItemlistFragment { diff --git a/src/de/danoeh/antennapod/miroguide/con/MiroGuideConnector.java b/src/de/danoeh/antennapod/miroguide/con/MiroGuideConnector.java index 92076d948..6e789630d 100644 --- a/src/de/danoeh/antennapod/miroguide/con/MiroGuideConnector.java +++ b/src/de/danoeh/antennapod/miroguide/con/MiroGuideConnector.java @@ -15,7 +15,6 @@ import org.json.JSONException; import org.json.JSONObject; import android.net.Uri; -import android.net.http.AndroidHttpClient; /** Executes HTTP requests and returns the results. */ public class MiroGuideConnector { diff --git a/src/de/danoeh/antennapod/opml/OpmlWriter.java b/src/de/danoeh/antennapod/opml/OpmlWriter.java index 9ad7def05..d2f94e895 100644 --- a/src/de/danoeh/antennapod/opml/OpmlWriter.java +++ b/src/de/danoeh/antennapod/opml/OpmlWriter.java @@ -8,7 +8,6 @@ import org.xmlpull.v1.XmlSerializer; import android.util.Log; import android.util.Xml; - import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.feed.Feed; diff --git a/src/de/danoeh/antennapod/receiver/FeedUpdateReceiver.java b/src/de/danoeh/antennapod/receiver/FeedUpdateReceiver.java index 7167e978d..ed6672ccb 100644 --- a/src/de/danoeh/antennapod/receiver/FeedUpdateReceiver.java +++ b/src/de/danoeh/antennapod/receiver/FeedUpdateReceiver.java @@ -1,8 +1,5 @@ package de.danoeh.antennapod.receiver; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.PodcastApp; -import de.danoeh.antennapod.feed.FeedManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; @@ -10,6 +7,9 @@ import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.preference.PreferenceManager; import android.util.Log; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.PodcastApp; +import de.danoeh.antennapod.feed.FeedManager; /** Refreshes all feeds when it receives an intent */ public class FeedUpdateReceiver extends BroadcastReceiver { diff --git a/src/de/danoeh/antennapod/receiver/MediaButtonReceiver.java b/src/de/danoeh/antennapod/receiver/MediaButtonReceiver.java index 298f8a2aa..c57070091 100644 --- a/src/de/danoeh/antennapod/receiver/MediaButtonReceiver.java +++ b/src/de/danoeh/antennapod/receiver/MediaButtonReceiver.java @@ -1,15 +1,12 @@ package de.danoeh.antennapod.receiver; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.service.PlaybackService; import android.content.BroadcastReceiver; -import android.content.ComponentName; import android.content.Context; import android.content.Intent; -import android.content.ServiceConnection; -import android.os.IBinder; import android.util.Log; import android.view.KeyEvent; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.service.PlaybackService; /** Receives media button events. */ public class MediaButtonReceiver extends BroadcastReceiver { diff --git a/src/de/danoeh/antennapod/receiver/PlayerWidget.java b/src/de/danoeh/antennapod/receiver/PlayerWidget.java index b1029a239..a3d849972 100644 --- a/src/de/danoeh/antennapod/receiver/PlayerWidget.java +++ b/src/de/danoeh/antennapod/receiver/PlayerWidget.java @@ -1,12 +1,12 @@ package de.danoeh.antennapod.receiver; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.service.PlayerWidgetService; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; import android.util.Log; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.service.PlayerWidgetService; public class PlayerWidget extends AppWidgetProvider { private static final String TAG = "PlayerWidget"; diff --git a/src/de/danoeh/antennapod/service/PlaybackService.java b/src/de/danoeh/antennapod/service/PlaybackService.java index e83912970..ad18bc3c2 100644 --- a/src/de/danoeh/antennapod/service/PlaybackService.java +++ b/src/de/danoeh/antennapod/service/PlaybackService.java @@ -43,7 +43,6 @@ import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedItem; import de.danoeh.antennapod.feed.FeedManager; import de.danoeh.antennapod.feed.FeedMedia; -import de.danoeh.antennapod.feed.SimpleChapter; import de.danoeh.antennapod.receiver.MediaButtonReceiver; import de.danoeh.antennapod.receiver.PlayerWidget; import de.danoeh.antennapod.util.ChapterUtils; diff --git a/src/de/danoeh/antennapod/service/PlayerWidgetService.java b/src/de/danoeh/antennapod/service/PlayerWidgetService.java index fa38e86ba..2d638823d 100644 --- a/src/de/danoeh/antennapod/service/PlayerWidgetService.java +++ b/src/de/danoeh/antennapod/service/PlayerWidgetService.java @@ -12,13 +12,12 @@ import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.widget.RemoteViews; -import de.danoeh.antennapod.activity.AudioplayerActivity; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.R; import de.danoeh.antennapod.feed.FeedMedia; import de.danoeh.antennapod.receiver.MediaButtonReceiver; import de.danoeh.antennapod.receiver.PlayerWidget; import de.danoeh.antennapod.util.Converter; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.R; /** Updates the state of the player widget */ public class PlayerWidgetService extends Service { diff --git a/src/de/danoeh/antennapod/service/download/DownloadService.java b/src/de/danoeh/antennapod/service/download/DownloadService.java index fae0f3b0f..84641c94d 100644 --- a/src/de/danoeh/antennapod/service/download/DownloadService.java +++ b/src/de/danoeh/antennapod/service/download/DownloadService.java @@ -38,12 +38,10 @@ import android.os.Handler; import android.os.IBinder; import android.os.Parcel; import android.os.Parcelable; -import android.preference.PreferenceManager; import android.support.v4.app.NotificationCompat; import android.util.Log; import android.webkit.URLUtil; import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.PodcastApp; import de.danoeh.antennapod.R; import de.danoeh.antennapod.activity.DownloadActivity; import de.danoeh.antennapod.activity.MainActivity; diff --git a/src/de/danoeh/antennapod/service/download/Downloader.java b/src/de/danoeh/antennapod/service/download/Downloader.java index 15a7b603f..220fbf5e0 100644 --- a/src/de/danoeh/antennapod/service/download/Downloader.java +++ b/src/de/danoeh/antennapod/service/download/Downloader.java @@ -1,9 +1,7 @@ package de.danoeh.antennapod.service.download; -import de.danoeh.antennapod.asynctask.DownloadStatus; -import android.os.Environment; import android.os.Handler; -import android.os.StatFs; +import de.danoeh.antennapod.asynctask.DownloadStatus; /** Downloads files */ public abstract class Downloader extends Thread { diff --git a/src/de/danoeh/antennapod/storage/PodDBAdapter.java b/src/de/danoeh/antennapod/storage/PodDBAdapter.java index 6cb8e0940..cd95c16df 100644 --- a/src/de/danoeh/antennapod/storage/PodDBAdapter.java +++ b/src/de/danoeh/antennapod/storage/PodDBAdapter.java @@ -19,7 +19,6 @@ import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedImage; import de.danoeh.antennapod.feed.FeedItem; import de.danoeh.antennapod.feed.FeedMedia; -import de.danoeh.antennapod.feed.SimpleChapter; /** * Implements methods for accessing the database diff --git a/src/de/danoeh/antennapod/syndication/handler/HandlerState.java b/src/de/danoeh/antennapod/syndication/handler/HandlerState.java index 1d81d0fb1..810478bf5 100644 --- a/src/de/danoeh/antennapod/syndication/handler/HandlerState.java +++ b/src/de/danoeh/antennapod/syndication/handler/HandlerState.java @@ -1,6 +1,5 @@ package de.danoeh.antennapod.syndication.handler; -import java.util.ArrayList; import java.util.HashMap; import java.util.Stack; diff --git a/src/de/danoeh/antennapod/syndication/handler/SyndHandler.java b/src/de/danoeh/antennapod/syndication/handler/SyndHandler.java index c1f1396bf..31ab0c114 100644 --- a/src/de/danoeh/antennapod/syndication/handler/SyndHandler.java +++ b/src/de/danoeh/antennapod/syndication/handler/SyndHandler.java @@ -5,7 +5,6 @@ import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import android.util.Log; - import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.syndication.namespace.Namespace; diff --git a/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java b/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java index f8066db40..04c8cdd42 100644 --- a/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java +++ b/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java @@ -11,7 +11,6 @@ import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserFactory; import android.util.Log; - import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.feed.Feed; diff --git a/src/de/danoeh/antennapod/syndication/namespace/Namespace.java b/src/de/danoeh/antennapod/syndication/namespace/Namespace.java index 496d314a9..9eafef71e 100644 --- a/src/de/danoeh/antennapod/syndication/namespace/Namespace.java +++ b/src/de/danoeh/antennapod/syndication/namespace/Namespace.java @@ -2,7 +2,6 @@ package de.danoeh.antennapod.syndication.namespace; import org.xml.sax.Attributes; -import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.syndication.handler.HandlerState; diff --git a/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java b/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java index 08580642c..1b1ed8730 100644 --- a/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java +++ b/src/de/danoeh/antennapod/syndication/namespace/atom/NSAtom.java @@ -2,9 +2,6 @@ package de.danoeh.antennapod.syndication.namespace.atom; import org.xml.sax.Attributes; -import android.util.Log; - -import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedImage; import de.danoeh.antennapod.feed.FeedItem; import de.danoeh.antennapod.feed.FeedMedia; diff --git a/src/de/danoeh/antennapod/syndication/namespace/content/NSContent.java b/src/de/danoeh/antennapod/syndication/namespace/content/NSContent.java index 7713eb9c3..54a007a98 100644 --- a/src/de/danoeh/antennapod/syndication/namespace/content/NSContent.java +++ b/src/de/danoeh/antennapod/syndication/namespace/content/NSContent.java @@ -5,9 +5,6 @@ import org.xml.sax.Attributes; import de.danoeh.antennapod.syndication.handler.HandlerState; import de.danoeh.antennapod.syndication.namespace.Namespace; import de.danoeh.antennapod.syndication.namespace.SyndElement; -import de.danoeh.antennapod.syndication.namespace.rss20.NSRSS20; - -import org.apache.commons.lang3.StringEscapeUtils; public class NSContent extends Namespace { public static final String NSTAG = "content"; diff --git a/src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java b/src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java index ab5466b04..2d4e5fcde 100644 --- a/src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java +++ b/src/de/danoeh/antennapod/syndication/namespace/rss20/NSRSS20.java @@ -1,25 +1,17 @@ package de.danoeh.antennapod.syndication.namespace.rss20; -import java.util.ArrayList; -import java.util.Date; +import org.xml.sax.Attributes; +import android.util.Log; import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.feed.Feed; import de.danoeh.antennapod.feed.FeedImage; import de.danoeh.antennapod.feed.FeedItem; import de.danoeh.antennapod.feed.FeedMedia; import de.danoeh.antennapod.syndication.handler.HandlerState; -import de.danoeh.antennapod.syndication.handler.SyndHandler; import de.danoeh.antennapod.syndication.namespace.Namespace; import de.danoeh.antennapod.syndication.namespace.SyndElement; import de.danoeh.antennapod.syndication.util.SyndDateUtils; -import org.xml.sax.Attributes; -import org.xml.sax.SAXException; -import org.xml.sax.helpers.DefaultHandler; - -import android.util.Log; - /** * SAX-Parser for reading RSS-Feeds * diff --git a/src/de/danoeh/antennapod/util/BitmapDecoder.java b/src/de/danoeh/antennapod/util/BitmapDecoder.java index 237c92a81..270cff0c9 100644 --- a/src/de/danoeh/antennapod/util/BitmapDecoder.java +++ b/src/de/danoeh/antennapod/util/BitmapDecoder.java @@ -1,9 +1,9 @@ package de.danoeh.antennapod.util; -import de.danoeh.antennapod.AppConfig; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.Log; +import de.danoeh.antennapod.AppConfig; public class BitmapDecoder { private static final String TAG = "BitmapDecoder"; diff --git a/src/de/danoeh/antennapod/util/ChapterUtils.java b/src/de/danoeh/antennapod/util/ChapterUtils.java index 4e153a9f9..bf88d8fd1 100644 --- a/src/de/danoeh/antennapod/util/ChapterUtils.java +++ b/src/de/danoeh/antennapod/util/ChapterUtils.java @@ -7,8 +7,6 @@ import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; -import java.net.URLConnection; -import java.util.ArrayList; import java.util.Collections; import java.util.List; diff --git a/src/de/danoeh/antennapod/util/ConnectionTester.java b/src/de/danoeh/antennapod/util/ConnectionTester.java index 2ca9b3218..2fd22d356 100644 --- a/src/de/danoeh/antennapod/util/ConnectionTester.java +++ b/src/de/danoeh/antennapod/util/ConnectionTester.java @@ -4,13 +4,10 @@ import java.io.IOException; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; -import java.net.URLConnection; -import de.danoeh.antennapod.AppConfig; - -import android.content.Context; import android.os.Handler; import android.util.Log; +import de.danoeh.antennapod.AppConfig; /** Tests a connection before downloading something. */ public class ConnectionTester implements Runnable { diff --git a/src/de/danoeh/antennapod/util/MediaPlayerError.java b/src/de/danoeh/antennapod/util/MediaPlayerError.java index 0ce95fe65..93922c747 100644 --- a/src/de/danoeh/antennapod/util/MediaPlayerError.java +++ b/src/de/danoeh/antennapod/util/MediaPlayerError.java @@ -1,8 +1,8 @@ package de.danoeh.antennapod.util; -import de.danoeh.antennapod.R; import android.content.Context; import android.media.MediaPlayer; +import de.danoeh.antennapod.R; /** Utility class for MediaPlayer errors. */ public class MediaPlayerError { diff --git a/src/de/danoeh/antennapod/util/NumberGenerator.java b/src/de/danoeh/antennapod/util/NumberGenerator.java index 630c64a89..ff89180e1 100644 --- a/src/de/danoeh/antennapod/util/NumberGenerator.java +++ b/src/de/danoeh/antennapod/util/NumberGenerator.java @@ -1,7 +1,5 @@ package de.danoeh.antennapod.util; -import java.util.Random; -import android.util.Log; /**Utility class for creating numbers.*/ public final class NumberGenerator { diff --git a/src/de/danoeh/antennapod/util/PlaybackController.java b/src/de/danoeh/antennapod/util/PlaybackController.java index 3e0ffb2ad..19cf4d662 100644 --- a/src/de/danoeh/antennapod/util/PlaybackController.java +++ b/src/de/danoeh/antennapod/util/PlaybackController.java @@ -28,7 +28,6 @@ import de.danoeh.antennapod.PodcastApp; import de.danoeh.antennapod.R; import de.danoeh.antennapod.feed.Chapter; import de.danoeh.antennapod.feed.FeedMedia; -import de.danoeh.antennapod.feed.SimpleChapter; import de.danoeh.antennapod.service.PlaybackService; import de.danoeh.antennapod.service.PlayerStatus; diff --git a/src/de/danoeh/antennapod/util/ShareUtils.java b/src/de/danoeh/antennapod/util/ShareUtils.java index 2d6dee138..0317adcd5 100644 --- a/src/de/danoeh/antennapod/util/ShareUtils.java +++ b/src/de/danoeh/antennapod/util/ShareUtils.java @@ -1,9 +1,9 @@ package de.danoeh.antennapod.util; -import de.danoeh.antennapod.feed.Feed; -import de.danoeh.antennapod.feed.FeedItem; import android.content.Context; import android.content.Intent; +import de.danoeh.antennapod.feed.Feed; +import de.danoeh.antennapod.feed.FeedItem; /** Utility methods for sharing data */ public class ShareUtils { diff --git a/src/de/danoeh/antennapod/util/StorageUtils.java b/src/de/danoeh/antennapod/util/StorageUtils.java index db61ff356..d4738f14f 100644 --- a/src/de/danoeh/antennapod/util/StorageUtils.java +++ b/src/de/danoeh/antennapod/util/StorageUtils.java @@ -1,10 +1,10 @@ package de.danoeh.antennapod.util; -import de.danoeh.antennapod.activity.StorageErrorActivity; import android.app.Activity; import android.content.Intent; import android.os.Environment; import android.os.StatFs; +import de.danoeh.antennapod.activity.StorageErrorActivity; /** Utility functions for handling storage errors */ public class StorageUtils { diff --git a/src/de/danoeh/antennapod/util/URLChecker.java b/src/de/danoeh/antennapod/util/URLChecker.java index bb34feb99..62cbfc7e9 100644 --- a/src/de/danoeh/antennapod/util/URLChecker.java +++ b/src/de/danoeh/antennapod/util/URLChecker.java @@ -1,7 +1,7 @@ package de.danoeh.antennapod.util; -import de.danoeh.antennapod.AppConfig; import android.util.Log; +import de.danoeh.antennapod.AppConfig; /** Provides methods for checking and editing a URL.*/ public final class URLChecker { diff --git a/src/de/danoeh/antennapod/util/flattr/FlattrServiceCreator.java b/src/de/danoeh/antennapod/util/flattr/FlattrServiceCreator.java index 6e42fcde2..b7e77e158 100644 --- a/src/de/danoeh/antennapod/util/flattr/FlattrServiceCreator.java +++ b/src/de/danoeh/antennapod/util/flattr/FlattrServiceCreator.java @@ -4,9 +4,8 @@ import org.shredzone.flattr4j.FlattrFactory; import org.shredzone.flattr4j.FlattrService; import org.shredzone.flattr4j.oauth.AccessToken; -import de.danoeh.antennapod.AppConfig; - import android.util.Log; +import de.danoeh.antennapod.AppConfig; /** Ensures that only one instance of the FlattrService class exists at a time */ diff --git a/src/de/danoeh/antennapod/util/flattr/FlattrUtils.java b/src/de/danoeh/antennapod/util/flattr/FlattrUtils.java index 158385399..ca2c9eb0f 100644 --- a/src/de/danoeh/antennapod/util/flattr/FlattrUtils.java +++ b/src/de/danoeh/antennapod/util/flattr/FlattrUtils.java @@ -10,21 +10,16 @@ import org.shredzone.flattr4j.oauth.AndroidAuthenticator; import org.shredzone.flattr4j.oauth.Scope; import android.app.AlertDialog; -import android.app.AlertDialog.Builder; -import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; -import android.os.AsyncTask; import android.preference.PreferenceManager; import android.util.Log; -import android.widget.Toast; import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.PodcastApp; - import de.danoeh.antennapod.R; import de.danoeh.antennapod.activity.FlattrAuthActivity; import de.danoeh.antennapod.asynctask.FlattrTokenFetcher; diff --git a/src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java b/src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java index 0851ff062..631169f8a 100644 --- a/src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java +++ b/src/de/danoeh/antennapod/util/menuhandler/FeedMenuHandler.java @@ -5,21 +5,19 @@ import android.content.Intent; import android.net.Uri; import android.util.Log; -import com.actionbarsherlock.view.ActionMode; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; +import de.danoeh.antennapod.AppConfig; +import de.danoeh.antennapod.R; import de.danoeh.antennapod.activity.FeedInfoActivity; import de.danoeh.antennapod.asynctask.FlattrClickWorker; import de.danoeh.antennapod.feed.Feed; -import de.danoeh.antennapod.feed.FeedItem; import de.danoeh.antennapod.feed.FeedManager; import de.danoeh.antennapod.service.download.DownloadService; import de.danoeh.antennapod.storage.DownloadRequester; import de.danoeh.antennapod.util.ShareUtils; -import de.danoeh.antennapod.AppConfig; -import de.danoeh.antennapod.R; /** Handles interactions with the FeedItemMenu. */ public class FeedMenuHandler {