From b7198b984c83a3fa12cd59314fb43a82a287eee0 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 19 Jul 2014 00:32:26 -0400 Subject: [PATCH] Global import optimize --- .../downloader/manager/BookDownloadManagerTest.java | 2 +- .../downloader/manager/InstalledManagerTest.java | 7 ------- .../activity/downloader/BookListFragment.java | 1 - .../activity/downloader/DownloadNavDrawerFragment.java | 1 - .../activity/downloader/manager/BookDownloadManager.java | 4 ---- .../activity/downloader/manager/RefreshManager.java | 7 ------- .../activity/viewer/ViewerNavDrawerFragment.java | 1 - .../minimalbible/test/activity/FragmentTestActivity.java | 9 ++------- 8 files changed, 3 insertions(+), 29 deletions(-) diff --git a/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/BookDownloadManagerTest.java b/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/BookDownloadManagerTest.java index 47ea423..8c5f633 100644 --- a/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/BookDownloadManagerTest.java +++ b/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/BookDownloadManagerTest.java @@ -30,7 +30,7 @@ import rx.Observable; import rx.functions.Action1; import rx.functions.Func1; -import static com.jayway.awaitility.Awaitility.*; +import static com.jayway.awaitility.Awaitility.await; public class BookDownloadManagerTest extends TestCase implements Injector { diff --git a/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/InstalledManagerTest.java b/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/InstalledManagerTest.java index 2538b4c..14b7f71 100644 --- a/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/InstalledManagerTest.java +++ b/app/src/androidTest/java/org/bspeice/minimalbible/test/activity/downloader/manager/InstalledManagerTest.java @@ -1,7 +1,5 @@ package org.bspeice.minimalbible.test.activity.downloader.manager; -import android.os.Handler; -import android.os.Looper; import android.util.Log; import junit.framework.TestCase; @@ -13,16 +11,12 @@ import org.bspeice.minimalbible.activity.downloader.manager.InstalledManager; import org.bspeice.minimalbible.activity.downloader.manager.RefreshManager; import org.crosswire.jsword.book.Book; import org.crosswire.jsword.book.Books; -import org.crosswire.jsword.book.BooksEvent; -import org.crosswire.jsword.book.BooksListener; import org.crosswire.jsword.book.install.InstallManager; import org.crosswire.jsword.book.install.Installer; import org.crosswire.jsword.book.sword.SwordBook; -import java.util.ArrayList; import java.util.Collection; import java.util.List; -import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; @@ -33,7 +27,6 @@ import dagger.Module; import dagger.ObjectGraph; import dagger.Provides; import rx.Observable; -import rx.android.schedulers.AndroidSchedulers; import rx.functions.Action0; import rx.functions.Action1; import rx.functions.Func1; diff --git a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/BookListFragment.java b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/BookListFragment.java index 1ddb74d..4957b2b 100644 --- a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/BookListFragment.java +++ b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/BookListFragment.java @@ -12,7 +12,6 @@ import android.widget.ListView; import android.widget.Toast; import org.bspeice.minimalbible.Injector; -import org.bspeice.minimalbible.MinimalBible; import org.bspeice.minimalbible.R; import org.bspeice.minimalbible.activity.BaseFragment; import org.bspeice.minimalbible.activity.downloader.manager.RefreshManager; diff --git a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/DownloadNavDrawerFragment.java b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/DownloadNavDrawerFragment.java index 1612fb1..bed11f9 100644 --- a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/DownloadNavDrawerFragment.java +++ b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/DownloadNavDrawerFragment.java @@ -10,7 +10,6 @@ import android.widget.ListView; import org.bspeice.minimalbible.R; import org.bspeice.minimalbible.activity.BaseNavigationDrawerFragment; -import org.crosswire.jsword.book.Book; import org.crosswire.jsword.book.BookCategory; import java.util.List; diff --git a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/manager/BookDownloadManager.java b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/manager/BookDownloadManager.java index 1857eba..0f4f471 100644 --- a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/manager/BookDownloadManager.java +++ b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/manager/BookDownloadManager.java @@ -1,11 +1,8 @@ package org.bspeice.minimalbible.activity.downloader.manager; -import android.content.Context; import android.util.Log; import org.bspeice.minimalbible.Injector; -import org.bspeice.minimalbible.MinimalBible; -import org.bspeice.minimalbible.activity.downloader.DownloadActivity; import org.crosswire.common.progress.JobManager; import org.crosswire.common.progress.Progress; import org.crosswire.common.progress.WorkEvent; @@ -21,7 +18,6 @@ import java.util.HashMap; import java.util.Map; import javax.inject.Inject; -import javax.inject.Provider; import javax.inject.Singleton; import rx.Observable; diff --git a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/manager/RefreshManager.java b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/manager/RefreshManager.java index 35eff32..a3c4521 100644 --- a/app/src/main/java/org/bspeice/minimalbible/activity/downloader/manager/RefreshManager.java +++ b/app/src/main/java/org/bspeice/minimalbible/activity/downloader/manager/RefreshManager.java @@ -1,15 +1,9 @@ package org.bspeice.minimalbible.activity.downloader.manager; -import android.content.Context; - import org.bspeice.minimalbible.Injector; -import org.bspeice.minimalbible.MinimalBible; -import org.bspeice.minimalbible.activity.downloader.DownloadActivity; import org.crosswire.jsword.book.Book; -import org.crosswire.jsword.book.install.InstallManager; import org.crosswire.jsword.book.install.Installer; -import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; @@ -23,7 +17,6 @@ import rx.Observable; import rx.functions.Action0; import rx.functions.Action1; import rx.functions.Func1; -import rx.functions.Func2; import rx.schedulers.Schedulers; /** diff --git a/app/src/main/java/org/bspeice/minimalbible/activity/viewer/ViewerNavDrawerFragment.java b/app/src/main/java/org/bspeice/minimalbible/activity/viewer/ViewerNavDrawerFragment.java index 6c2b74d..671b81b 100644 --- a/app/src/main/java/org/bspeice/minimalbible/activity/viewer/ViewerNavDrawerFragment.java +++ b/app/src/main/java/org/bspeice/minimalbible/activity/viewer/ViewerNavDrawerFragment.java @@ -5,7 +5,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; -import android.widget.ArrayAdapter; import android.widget.ListView; import org.bspeice.minimalbible.Injector; diff --git a/app/src/testConfig/java/org/bspeice/minimalbible/test/activity/FragmentTestActivity.java b/app/src/testConfig/java/org/bspeice/minimalbible/test/activity/FragmentTestActivity.java index b13b33b..2a46a63 100644 --- a/app/src/testConfig/java/org/bspeice/minimalbible/test/activity/FragmentTestActivity.java +++ b/app/src/testConfig/java/org/bspeice/minimalbible/test/activity/FragmentTestActivity.java @@ -1,18 +1,13 @@ package org.bspeice.minimalbible.test.activity; +import android.os.Bundle; import android.os.Handler; import android.os.Looper; +import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v7.app.ActionBarActivity; -import android.support.v7.app.ActionBar; -import android.support.v4.app.Fragment; -import android.os.Bundle; -import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; -import android.view.View; -import android.view.ViewGroup; -import android.os.Build; import org.bspeice.minimalbible.R;