diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/BaseFiltersFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/BaseFiltersFragment.java similarity index 93% rename from twidere/src/main/java/org/mariotaku/twidere/fragment/BaseFiltersFragment.java rename to twidere/src/main/java/org/mariotaku/twidere/fragment/support/BaseFiltersFragment.java index a511d73dc..8c1f6e0c9 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/BaseFiltersFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/BaseFiltersFragment.java @@ -17,17 +17,15 @@ * along with this program. If not, see . */ -package org.mariotaku.twidere.fragment; +package org.mariotaku.twidere.fragment.support; import android.app.Dialog; -import android.content.BroadcastReceiver; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; -import android.content.IntentFilter; import android.content.res.Resources; import android.database.Cursor; import android.net.Uri; @@ -60,8 +58,6 @@ import org.mariotaku.twidere.R; import org.mariotaku.twidere.activity.support.UserListSelectorActivity; import org.mariotaku.twidere.adapter.ComposeAutoCompleteAdapter; import org.mariotaku.twidere.adapter.SourceAutoCompleteAdapter; -import org.mariotaku.twidere.fragment.support.AbsContentListViewFragment; -import org.mariotaku.twidere.fragment.support.BaseSupportDialogFragment; import org.mariotaku.twidere.model.ParcelableUser; import org.mariotaku.twidere.provider.TwidereDataStore.Filters; import org.mariotaku.twidere.util.ContentValuesCreator; @@ -76,23 +72,11 @@ import javax.inject.Inject; import static org.mariotaku.twidere.util.Utils.getDefaultAccountId; -public abstract class BaseFiltersFragment extends AbsContentListViewFragment implements LoaderManager.LoaderCallbacks, - MultiChoiceModeListener { +public abstract class BaseFiltersFragment extends AbsContentListViewFragment + implements LoaderManager.LoaderCallbacks, MultiChoiceModeListener { private static final String EXTRA_AUTO_COMPLETE_TYPE = "auto_complete_type"; private static final int AUTO_COMPLETE_TYPE_SOURCES = 2; - private final BroadcastReceiver mStateReceiver = new BroadcastReceiver() { - - @Override - public void onReceive(final Context context, final Intent intent) { - if (getActivity() == null || !isAdded() || isDetached()) return; - final String action = intent.getAction(); - if (BROADCAST_FILTERS_UPDATED.equals(action)) { - getLoaderManager().restartLoader(0, null, BaseFiltersFragment.this); - } - } - - }; private ContentResolver mResolver; private ActionMode mActionMode; @@ -123,19 +107,6 @@ public abstract class BaseFiltersFragment extends AbsContentListViewFragment