Sliding panel (early version, current implementation will probably replaced with a fragment implementation soon), translucent and colored statusbar for KitKat everywhere, use correct text colors for secondary texts, numerous clean ups
This commit is contained in:
parent
8f6e03f742
commit
5f0bfdb14b
65 changed files with 1247 additions and 1177 deletions
|
|
@ -24,12 +24,9 @@ public class MultiPlayer implements MediaPlayer.OnErrorListener,
|
|||
MediaPlayer.OnCompletionListener {
|
||||
public static final String TAG = MultiPlayer.class.getSimpleName();
|
||||
|
||||
@NonNull
|
||||
private final WeakReference<MusicService> mService;
|
||||
|
||||
@Nullable
|
||||
private MediaPlayer mCurrentMediaPlayer = new MediaPlayer();
|
||||
@Nullable
|
||||
private MediaPlayer mNextMediaPlayer;
|
||||
|
||||
private Handler mHandler;
|
||||
|
|
|
|||
|
|
@ -741,9 +741,10 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
|||
return player.duration();
|
||||
}
|
||||
|
||||
public void seek(int millis) {
|
||||
player.seek(millis);
|
||||
public int seek(int millis) {
|
||||
int newPosition = player.seek(millis);
|
||||
savePositionInTrack();
|
||||
return newPosition;
|
||||
}
|
||||
|
||||
public void cycleRepeatMode() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue