summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2013-10-29 10:41:09 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-29 10:41:09 -0700
commite0b3f3e106d5b0b9eb31ed3bd43c8a536eb8d1ee (patch)
tree83a4efa7ba38daa51baf91b09341a30b2f7eed5a /packages/Keyguard
parentaf5d6e49526e97a267bedf076797fde6e9589bba (diff)
parent4742fe3cd79cf1f7d0c84ba87ee3ebdd5eb175d0 (diff)
downloadframeworks_base-e0b3f3e106d5b0b9eb31ed3bd43c8a536eb8d1ee.zip
frameworks_base-e0b3f3e106d5b0b9eb31ed3bd43c8a536eb8d1ee.tar.gz
frameworks_base-e0b3f3e106d5b0b9eb31ed3bd43c8a536eb8d1ee.tar.bz2
am 4742fe3c: am 64742f84: Merge "show duration instead of remaining time." into klp-dev
* commit '4742fe3cd79cf1f7d0c84ba87ee3ebdd5eb175d0': show duration instead of remaining time.
Diffstat (limited to 'packages/Keyguard')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
index 8095ecf..29ba60d 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
@@ -75,7 +75,7 @@ public class KeyguardTransportControlView extends FrameLayout {
private View mTransientSeek;
private SeekBar mTransientSeekBar;
private TextView mTransientSeekTimeElapsed;
- private TextView mTransientSeekTimeRemaining;
+ private TextView mTransientSeekTimeTotal;
private ImageView mBtnPrev;
private ImageView mBtnPlay;
@@ -93,7 +93,7 @@ public class KeyguardTransportControlView extends FrameLayout {
private java.text.DateFormat mFormat;
private Date mTimeElapsed;
- private Date mTimeRemaining;
+ private Date mTrackDuration;
/**
* The metadata which should be populated into the view once we've been attached
@@ -281,7 +281,7 @@ public class KeyguardTransportControlView extends FrameLayout {
mTransientSeekBar = (SeekBar) findViewById(R.id.transient_seek_bar);
mTransientSeekBar.setOnSeekBarChangeListener(mOnSeekBarChangeListener);
mTransientSeekTimeElapsed = (TextView) findViewById(R.id.transient_seek_time_elapsed);
- mTransientSeekTimeRemaining = (TextView) findViewById(R.id.transient_seek_time_remaining);
+ mTransientSeekTimeTotal = (TextView) findViewById(R.id.transient_seek_time_remaining);
mBtnPrev = (ImageView) findViewById(R.id.btn_prev);
mBtnPlay = (ImageView) findViewById(R.id.btn_play);
mBtnNext = (ImageView) findViewById(R.id.btn_next);
@@ -458,16 +458,16 @@ public class KeyguardTransportControlView extends FrameLayout {
if (mTimeElapsed == null) {
mTimeElapsed = new Date();
}
- if (mTimeRemaining == null) {
- mTimeRemaining = new Date();
+ if (mTrackDuration == null) {
+ mTrackDuration = new Date();
}
mTimeElapsed.setTime(mRemoteController.getEstimatedMediaPosition());
- mTimeRemaining.setTime(mMetadata.duration - mTimeElapsed.getTime());
+ mTrackDuration.setTime(mMetadata.duration);
mTransientSeekTimeElapsed.setText(mFormat.format(mTimeElapsed));
- mTransientSeekTimeRemaining.setText(mFormat.format(mTimeRemaining));
+ mTransientSeekTimeTotal.setText(mFormat.format(mTrackDuration));
if (DEBUG) Log.d(TAG, "updateSeekDisplay timeElapsed=" + mTimeElapsed +
- " duration=" + mMetadata.duration + " remaining=" + mTimeRemaining);
+ " duration=" + mMetadata.duration);
}
}