mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-29 19:20:28 +00:00
Blink current time when paused, like old CD players used to.
This commit is contained in:
parent
c5d88afd1c
commit
6634db9ae0
@ -3,14 +3,14 @@ apply plugin: 'me.tatarka.retrolambda'
|
||||
|
||||
android {
|
||||
compileSdkVersion 25
|
||||
buildToolsVersion '25.0.0'
|
||||
buildToolsVersion '25.0.2'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "io.casey.musikcube.remote"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 25
|
||||
versionCode 10
|
||||
versionName "0.8"
|
||||
versionCode 11
|
||||
versionName "0.9"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
|
@ -361,6 +361,14 @@ public class MainActivity extends WebSocketActivityBase {
|
||||
seekbar.setProgress((int) current);
|
||||
seekbar.setSecondaryProgress((int) playback.getBufferedTime());
|
||||
|
||||
if (playback.getPlaybackState() == PlaybackState.Paused) {
|
||||
final boolean visible = currentTime.getVisibility() == View.VISIBLE;
|
||||
currentTime.setVisibility(visible ? View.INVISIBLE : View.VISIBLE);
|
||||
}
|
||||
else {
|
||||
currentTime.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
scheduleUpdateTime(false);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user