Cleanup - got rid of unused imports

This commit is contained in:
Paul Hawke 2017-07-25 21:19:56 -05:00
parent bf59afcc3b
commit 3b797751a3

View file

@ -1,7 +1,6 @@
package fr.free.nrw.commons.category; package fr.free.nrw.commons.category;
import android.content.ContentProviderClient; import android.content.ContentProviderClient;
import android.content.DialogInterface;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.database.Cursor; import android.database.Cursor;
import android.os.AsyncTask; import android.os.AsyncTask;
@ -15,7 +14,6 @@ import android.support.v7.widget.RecyclerView;
import android.text.Editable; import android.text.Editable;
import android.text.TextUtils; import android.text.TextUtils;
import android.text.TextWatcher; import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.Menu; import android.view.Menu;
import android.view.MenuInflater; import android.view.MenuInflater;
@ -56,11 +54,16 @@ import static fr.free.nrw.commons.category.CategoryContentProvider.AUTHORITY;
public class CategorizationFragment extends Fragment implements CategoryClickedListener { public class CategorizationFragment extends Fragment implements CategoryClickedListener {
public static final int SEARCH_CATS_LIMIT = 25; public static final int SEARCH_CATS_LIMIT = 25;
@BindView(R.id.categoriesListBox) RecyclerView categoriesList; @BindView(R.id.categoriesListBox)
@BindView(R.id.categoriesSearchBox) EditText categoriesFilter; RecyclerView categoriesList;
@BindView(R.id.categoriesSearchInProgress) ProgressBar categoriesSearchInProgress; @BindView(R.id.categoriesSearchBox)
@BindView(R.id.categoriesNotFound) TextView categoriesNotFoundView; EditText categoriesFilter;
@BindView(R.id.categoriesExplanation) TextView categoriesSkip; @BindView(R.id.categoriesSearchInProgress)
ProgressBar categoriesSearchInProgress;
@BindView(R.id.categoriesNotFound)
TextView categoriesNotFoundView;
@BindView(R.id.categoriesExplanation)
TextView categoriesSkip;
private RVRendererAdapter<CategoryItem> categoriesAdapter; private RVRendererAdapter<CategoryItem> categoriesAdapter;
private OnCategoriesSaveHandler onCategoriesSaveHandler; private OnCategoriesSaveHandler onCategoriesSaveHandler;
@ -450,7 +453,7 @@ public class CategorizationFragment extends Fragment implements CategoryClickedL
public void backButtonDialog() { public void backButtonDialog() {
new AlertDialog.Builder(getActivity()) new AlertDialog.Builder(getActivity())
.setMessage("Are you sure you want to go back? The image will not " .setMessage("Are you sure you want to go back? The image will not "
+ "have any categories saved.") + "have any categories saved.")
.setTitle("Warning") .setTitle("Warning")
.setPositiveButton("No", (dialog, id) -> { .setPositiveButton("No", (dialog, id) -> {