Rename SortBottomSheetDialogFragment
This commit is contained in:
parent
473c82e19d
commit
5130a39c2f
2 changed files with 7 additions and 7 deletions
|
@ -41,7 +41,7 @@ import net.osmand.plus.activities.ActionBarProgressActivity;
|
||||||
import net.osmand.plus.activities.MapActivity;
|
import net.osmand.plus.activities.MapActivity;
|
||||||
import net.osmand.plus.activities.OsmandActionBarActivity;
|
import net.osmand.plus.activities.OsmandActionBarActivity;
|
||||||
import net.osmand.plus.audionotes.AudioVideoNotesPlugin.Recording;
|
import net.osmand.plus.audionotes.AudioVideoNotesPlugin.Recording;
|
||||||
import net.osmand.plus.audionotes.SortBottomSheetDialogFragment.SortFragmentListener;
|
import net.osmand.plus.audionotes.SortByMenuBottomSheetDialogFragment.SortFragmentListener;
|
||||||
import net.osmand.plus.base.OsmAndListFragment;
|
import net.osmand.plus.base.OsmAndListFragment;
|
||||||
import net.osmand.plus.dialogs.DirectionsDialogs;
|
import net.osmand.plus.dialogs.DirectionsDialogs;
|
||||||
import net.osmand.plus.helpers.AndroidUiHelper;
|
import net.osmand.plus.helpers.AndroidUiHelper;
|
||||||
|
@ -79,9 +79,9 @@ public class NotesFragment extends OsmAndListFragment {
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
||||||
// Handle screen rotation:
|
// Handle screen rotation:
|
||||||
Fragment sortByMenu = getChildFragmentManager().findFragmentByTag(SortBottomSheetDialogFragment.TAG);
|
Fragment sortByMenu = getChildFragmentManager().findFragmentByTag(SortByMenuBottomSheetDialogFragment.TAG);
|
||||||
if (sortByMenu != null) {
|
if (sortByMenu != null) {
|
||||||
((SortBottomSheetDialogFragment) sortByMenu).setListener(createSortFragmentListener());
|
((SortByMenuBottomSheetDialogFragment) sortByMenu).setListener(createSortFragmentListener());
|
||||||
}
|
}
|
||||||
|
|
||||||
setHasOptionsMenu(true);
|
setHasOptionsMenu(true);
|
||||||
|
@ -182,10 +182,10 @@ public class NotesFragment extends OsmAndListFragment {
|
||||||
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onMenuItemClick(MenuItem item) {
|
public boolean onMenuItemClick(MenuItem item) {
|
||||||
SortBottomSheetDialogFragment fragment = new SortBottomSheetDialogFragment();
|
SortByMenuBottomSheetDialogFragment fragment = new SortByMenuBottomSheetDialogFragment();
|
||||||
fragment.setUsedOnMap(false);
|
fragment.setUsedOnMap(false);
|
||||||
fragment.setListener(createSortFragmentListener());
|
fragment.setListener(createSortFragmentListener());
|
||||||
fragment.show(getChildFragmentManager(), SortBottomSheetDialogFragment.TAG);
|
fragment.show(getChildFragmentManager(), SortByMenuBottomSheetDialogFragment.TAG);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,9 +14,9 @@ import net.osmand.plus.OsmandSettings.NotesSortByMode;
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
import net.osmand.plus.base.MenuBottomSheetDialogFragment;
|
import net.osmand.plus.base.MenuBottomSheetDialogFragment;
|
||||||
|
|
||||||
public class SortBottomSheetDialogFragment extends MenuBottomSheetDialogFragment {
|
public class SortByMenuBottomSheetDialogFragment extends MenuBottomSheetDialogFragment {
|
||||||
|
|
||||||
public static final String TAG = "SortBottomSheetDialogFragment";
|
public static final String TAG = "SortByMenuBottomSheetDialogFragment";
|
||||||
|
|
||||||
private SortFragmentListener listener;
|
private SortFragmentListener listener;
|
||||||
|
|
Loading…
Reference in a new issue