Remove empty view click listener from lists as it wasn't working
Changed empty list message to make it correct
This commit is contained in:
parent
19f82a1827
commit
850e9809e2
|
@ -307,12 +307,6 @@ public class AlbumListFragment extends Fragment
|
|||
adapter.swapCursor(cursor);
|
||||
// To prevent the empty text from appearing on the first load, set it now
|
||||
emptyView.setText(getString(R.string.no_albums_found_refresh));
|
||||
emptyView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onRefresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
|
@ -275,12 +275,6 @@ public class ArtistListFragment extends Fragment
|
|||
adapter.swapCursor(cursor);
|
||||
// To prevent the empty text from appearing on the first load, set it now
|
||||
emptyView.setText(getString(R.string.no_artists_found_refresh));
|
||||
emptyView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onRefresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
|
@ -264,12 +264,6 @@ public class AudioGenresListFragment extends Fragment
|
|||
adapter.swapCursor(cursor);
|
||||
// To prevent the empty text from appearing on the first load, set it now
|
||||
emptyView.setText(getString(R.string.no_genres_found_refresh));
|
||||
emptyView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onRefresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
|
@ -311,12 +311,6 @@ public class MovieListFragment extends Fragment
|
|||
adapter.swapCursor(cursor);
|
||||
// To prevent the empty text from appearing on the first load, set it now
|
||||
emptyView.setText(getString(R.string.no_movies_found_refresh));
|
||||
emptyView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onRefresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
|
@ -263,12 +263,6 @@ public class MusicVideoListFragment extends Fragment
|
|||
adapter.swapCursor(cursor);
|
||||
// To prevent the empty text from appearing on the first load, set it now
|
||||
emptyView.setText(getString(R.string.no_music_videos_found_refresh));
|
||||
emptyView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onRefresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
|
@ -228,6 +228,7 @@ public class TVShowListFragment extends Fragment
|
|||
@Override
|
||||
public void onRefresh() {
|
||||
if (hostInfo != null) {
|
||||
LogUtils.LOGD(TAG, "Starting onRefresh");
|
||||
// Make sure we're showing the refresh
|
||||
swipeRefreshLayout.setRefreshing(true);
|
||||
// Start the syncing process
|
||||
|
@ -306,12 +307,6 @@ public class TVShowListFragment extends Fragment
|
|||
adapter.swapCursor(cursor);
|
||||
// To prevent the empty text from appearing on the first load, set it now
|
||||
emptyView.setText(getString(R.string.no_tvshows_found_refresh));
|
||||
emptyView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onRefresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
|
@ -190,14 +190,14 @@
|
|||
<string name="playlist_empty">Playlist empty</string>
|
||||
<string name="clear_playlist">Clear playlist</string>
|
||||
|
||||
<string name="no_movies_found_refresh">No movies found\n\nTap to refresh</string>
|
||||
<string name="no_tvshows_found_refresh">No TV Shows found\n\nTap to refresh</string>
|
||||
<string name="no_movies_found_refresh">No movies found\n\nSwipe down to refresh</string>
|
||||
<string name="no_tvshows_found_refresh">No TV Shows found\n\nSwipe down to refresh</string>
|
||||
<string name="no_episodes_found">No episodes found</string>
|
||||
<string name="no_artists_found_refresh">No artists found\n\nTap to refresh</string>
|
||||
<string name="no_albums_found_refresh">No albums found\n\nTap to refresh</string>
|
||||
<string name="no_genres_found_refresh">No genres found\n\nTap to refresh</string>
|
||||
<string name="no_addons_found_refresh">No addons found or not connected\n\nTap to refresh</string>
|
||||
<string name="no_music_videos_found_refresh">No videos found\n\nTap to refresh</string>
|
||||
<string name="no_artists_found_refresh">No artists found\n\nSwipe down to refresh</string>
|
||||
<string name="no_albums_found_refresh">No albums found\n\nSwipe down to refresh</string>
|
||||
<string name="no_genres_found_refresh">No genres found\n\nSwipe down to refresh</string>
|
||||
<string name="no_addons_found_refresh">No addons found or not connected\n\nSwipe down to refresh</string>
|
||||
<string name="no_music_videos_found_refresh">No videos found\n\nSwipe down to refresh</string>
|
||||
<string name="pull_to_refresh">Pull to refresh</string>
|
||||
|
||||
<string name="minutes_abbrev">%1$s min</string>
|
||||
|
|
Loading…
Reference in New Issue