This commit is contained in:
parent
99aa6135f7
commit
70366e6b76
1 changed files with 6 additions and 6 deletions
|
@ -53,9 +53,6 @@ import java.util.ArrayList;
|
|||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Denis on 18.02.2015.
|
||||
*/
|
||||
public class NotesFragment extends OsmAndListFragment {
|
||||
private static final Log LOG = PlatformUtil.getLog(NotesFragment.class);
|
||||
|
||||
|
@ -170,10 +167,13 @@ public class NotesFragment extends OsmAndListFragment {
|
|||
|
||||
private void enableSelectionMode(boolean selectionMode) {
|
||||
this.selectionMode = selectionMode;
|
||||
getView().findViewById(R.id.select_all).setVisibility(selectionMode? View.VISIBLE : View.GONE);
|
||||
((FavoritesActivity)getActivity()).setToolbarVisibility(!selectionMode &&
|
||||
View view = getView();
|
||||
if (view != null) {
|
||||
view.findViewById(R.id.select_all).setVisibility(selectionMode ? View.VISIBLE : View.GONE);
|
||||
((FavoritesActivity) getActivity()).setToolbarVisibility(!selectionMode &&
|
||||
AndroidUiHelper.isOrientationPortrait(getActivity()));
|
||||
}
|
||||
}
|
||||
|
||||
private void updateSelectionTitle(ActionMode m){
|
||||
if(selected.size() > 0) {
|
||||
|
|
Loading…
Reference in a new issue