change visibility to invisible

This commit is contained in:
Chumva 2018-03-28 17:41:31 +03:00
parent 2a507d01f3
commit 05d5e2fa39
7 changed files with 7 additions and 7 deletions

View file

@ -166,7 +166,7 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
if (Build.VERSION.SDK_INT >= 18) {
emptyImageView.setImageResource(app.getSettings().isLightContent() ? R.drawable.ic_empty_state_favorites_day : R.drawable.ic_empty_state_favorites_night);
} else {
emptyImageView.setVisibility(View.GONE);
emptyImageView.setVisibility(View.INVISIBLE);
}
Button importButton = (Button) emptyView.findViewById(R.id.import_button);
importButton.setOnClickListener(new View.OnClickListener() {

View file

@ -108,7 +108,7 @@ public class NotesFragment extends OsmAndListFragment {
? R.drawable.ic_empty_state_av_notes_day : R.drawable.ic_empty_state_av_notes_night;
emptyImageView.setImageResource(icRes);
} else {
emptyImageView.setVisibility(View.GONE);
emptyImageView.setVisibility(View.INVISIBLE);
}
return view;
}

View file

@ -130,7 +130,7 @@ public class MapMarkersActiveFragment extends Fragment implements OsmAndCompassL
if (Build.VERSION.SDK_INT >= 18) {
emptyImageView.setImageResource(mapActivity.getMyApplication().getSettings().isLightContent() ? R.drawable.ic_empty_state_marker_list_day : R.drawable.ic_empty_state_marker_list_night);
} else {
emptyImageView.setVisibility(View.GONE);
emptyImageView.setVisibility(View.INVISIBLE);
}
recyclerView.setEmptyView(emptyView);
recyclerView.setAdapter(adapter);

View file

@ -308,7 +308,7 @@ public class MapMarkersGroupsFragment extends Fragment implements OsmAndCompassL
if (Build.VERSION.SDK_INT >= 18) {
emptyImageView.setImageResource(night ? R.drawable.ic_empty_state_marker_group_night : R.drawable.ic_empty_state_marker_group_day);
} else {
emptyImageView.setVisibility(View.GONE);
emptyImageView.setVisibility(View.INVISIBLE);
}
recyclerView.setEmptyView(emptyView);
recyclerView.setAdapter(adapter);

View file

@ -207,7 +207,7 @@ public class MapMarkersHistoryFragment extends Fragment implements MapMarkersHel
if (Build.VERSION.SDK_INT >= 18) {
emptyImageView.setImageResource(night ? R.drawable.ic_empty_state_marker_history_night : R.drawable.ic_empty_state_marker_history_day);
} else {
emptyImageView.setVisibility(View.GONE);
emptyImageView.setVisibility(View.INVISIBLE);
}
recyclerView.setEmptyView(emptyView);
recyclerView.setAdapter(adapter);

View file

@ -336,7 +336,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
if (Build.VERSION.SDK_INT >= 18) {
emptyImageView.setImageResource(app.getSettings().isLightContent() ? R.drawable.ic_empty_state_trip_day : R.drawable.ic_empty_state_trip_night);
} else {
emptyImageView.setVisibility(View.GONE);
emptyImageView.setVisibility(View.INVISIBLE);
}
Button importButton = (Button) emptyView.findViewById(R.id.import_button);
importButton.setOnClickListener(new View.OnClickListener() {

View file

@ -149,7 +149,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
? R.drawable.ic_empty_state_osm_edits_day : R.drawable.ic_empty_state_osm_edits_night;
emptyImageView.setImageResource(icRes);
} else {
emptyImageView.setVisibility(View.GONE);
emptyImageView.setVisibility(View.INVISIBLE);
}
FragmentManager fm = getChildFragmentManager();
Fragment optionsFragment = fm.findFragmentByTag(OsmEditOptionsBottomSheetDialogFragment.TAG);