mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
use second resolution in bt device display
Useful to see that a scan really did just happen
This commit is contained in:
parent
7c7b80deae
commit
24fad52cd8
1 changed files with 4 additions and 2 deletions
|
@ -203,8 +203,10 @@ public class BTInviteDelegate extends InviteDelegate {
|
||||||
|
|
||||||
String msg = null;
|
String msg = null;
|
||||||
if ( mPersisted.stamps.containsKey( devName ) ) {
|
if ( mPersisted.stamps.containsKey( devName ) ) {
|
||||||
long lastSeenMS = mPersisted.stamps.get( devName );
|
CharSequence elapsed = DateUtils
|
||||||
CharSequence elapsed = DateUtils.getRelativeTimeSpanString( lastSeenMS );
|
.getRelativeTimeSpanString( mPersisted.stamps.get( devName ),
|
||||||
|
System.currentTimeMillis(),
|
||||||
|
DateUtils.SECOND_IN_MILLIS );
|
||||||
msg = getString( R.string.bt_scan_age_fmt, elapsed );
|
msg = getString( R.string.bt_scan_age_fmt, elapsed );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue