Replace empty states
This commit is contained in:
parent
8dbe5e6b32
commit
f19dfae177
2 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
|
||||||
}
|
}
|
||||||
View emptyView = view.findViewById(android.R.id.empty);
|
View emptyView = view.findViewById(android.R.id.empty);
|
||||||
ImageView emptyImageView = (ImageView) emptyView.findViewById(R.id.empty_state_image_view);
|
ImageView emptyImageView = (ImageView) emptyView.findViewById(R.id.empty_state_image_view);
|
||||||
emptyImageView.setImageResource(app.getSettings().isLightContent() ? R.drawable.ic_empty_state_favorites_day_result : R.drawable.ic_empty_state_favorites_night_result);
|
emptyImageView.setImageResource(app.getSettings().isLightContent() ? R.drawable.ic_empty_state_favorites_day : R.drawable.ic_empty_state_favorites_night);
|
||||||
Button importButton = (Button) emptyView.findViewById(R.id.import_button);
|
Button importButton = (Button) emptyView.findViewById(R.id.import_button);
|
||||||
importButton.setOnClickListener(new View.OnClickListener() {
|
importButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -330,7 +330,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
|
||||||
listView.addFooterView(footerView);
|
listView.addFooterView(footerView);
|
||||||
emptyView = v.findViewById(android.R.id.empty);
|
emptyView = v.findViewById(android.R.id.empty);
|
||||||
ImageView emptyImageView = (ImageView) emptyView.findViewById(R.id.empty_state_image_view);
|
ImageView emptyImageView = (ImageView) emptyView.findViewById(R.id.empty_state_image_view);
|
||||||
emptyImageView.setImageResource(app.getSettings().isLightContent() ? R.drawable.ic_empty_state_trip_day_result : R.drawable.ic_empty_state_trip_night_result);
|
emptyImageView.setImageResource(app.getSettings().isLightContent() ? R.drawable.ic_empty_state_trip_day : R.drawable.ic_empty_state_trip_night);
|
||||||
Button importButton = (Button) emptyView.findViewById(R.id.import_button);
|
Button importButton = (Button) emptyView.findViewById(R.id.import_button);
|
||||||
importButton.setOnClickListener(new View.OnClickListener() {
|
importButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue