Refactoring
This commit is contained in:
parent
aabd0367b9
commit
8a57d32214
3 changed files with 30 additions and 26 deletions
|
|
@ -5,8 +5,8 @@ import android.util.SparseArray;
|
|||
public abstract class AbsSynchronizedLyrics extends Lyrics {
|
||||
private static final int TIME_OFFSET_MS = 500; // time adjustment to display line before it actually starts
|
||||
|
||||
public final SparseArray<String> lines = new SparseArray<>();
|
||||
public int offset = 0;
|
||||
protected final SparseArray<String> lines = new SparseArray<>();
|
||||
protected int offset = 0;
|
||||
|
||||
public String getLine(int time) {
|
||||
time += offset + AbsSynchronizedLyrics.TIME_OFFSET_MS;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ public class Lyrics {
|
|||
public Song song;
|
||||
public String data;
|
||||
|
||||
boolean parsed = false;
|
||||
boolean valid = false;
|
||||
protected boolean parsed = false;
|
||||
protected boolean valid = false;
|
||||
|
||||
public Lyrics setData(Song song, String data) {
|
||||
this.song = song;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue