summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2013-10-29 13:19:54 -0400
committerChris Wren <cwren@android.com>2013-10-29 13:19:54 -0400
commit6af85cc2c60f51356ddc5db141cd0fd07d3693b9 (patch)
treeca0ec9e7af35f1c8dc6c9d7f84a567d02700e86d /packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
parentcab6965b191da02e783bc578ae3921fc0bca019f (diff)
downloadframeworks_base-6af85cc2c60f51356ddc5db141cd0fd07d3693b9.zip
frameworks_base-6af85cc2c60f51356ddc5db141cd0fd07d3693b9.tar.gz
frameworks_base-6af85cc2c60f51356ddc5db141cd0fd07d3693b9.tar.bz2
show duration instead of remaining time.
Bug: 11351406 Change-Id: I1238408c439f9cd12382d9a0889321bbb75618d3
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java')
-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);
}
}