Rename Song.populate to Song.query
This commit is contained in:
parent
b878e1aebe
commit
1f2f9d5d86
@ -560,7 +560,7 @@ public final class PlaybackService extends Service implements Handler.Callback,
|
||||
Log.e("VanillaMusic", "MediaPlayer error: " + what + " " + extra);
|
||||
mMediaPlayer.reset();
|
||||
Song song = getSong(+1);
|
||||
if (song != null && !song.populate(true))
|
||||
if (song != null && !song.query(true))
|
||||
setFlag(FLAG_NO_MEDIA);
|
||||
else
|
||||
mHandler.sendEmptyMessage(TRACK_CHANGED);
|
||||
|
@ -135,7 +135,7 @@ public class Song implements Parcelable {
|
||||
* @param force Query even if fields have already been populated
|
||||
* @return true if fields have been populated, false otherwise
|
||||
*/
|
||||
public boolean populate(boolean force)
|
||||
public boolean query(boolean force)
|
||||
{
|
||||
if (path != null && !force)
|
||||
return true;
|
||||
|
@ -318,9 +318,9 @@ public final class SongTimeline {
|
||||
}
|
||||
}
|
||||
|
||||
if (!song.populate(false)) {
|
||||
if (!song.query(false)) {
|
||||
song.randomize();
|
||||
if (!song.populate(false))
|
||||
if (!song.query(false))
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user