From befa3d6d8bca86f28968069128d6f454b39ed9a8 Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Tue, 22 May 2012 14:33:43 -0700 Subject: Show time in NFC handover notifications. Notification sorting is coupled to the time associated with the notifications, and there's no way to hide the time in the notification without setting the time to zero. Since we prefer a proper sorting over hiding the time, just show the time again. Change-Id: I3188a80f8d7b7fcac54ffa790df58faa53241557 --- src/com/android/nfc/handover/HandoverManager.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/com') diff --git a/src/com/android/nfc/handover/HandoverManager.java b/src/com/android/nfc/handover/HandoverManager.java index a1458b9..f229b65 100644 --- a/src/com/android/nfc/handover/HandoverManager.java +++ b/src/com/android/nfc/handover/HandoverManager.java @@ -375,7 +375,6 @@ public class HandoverManager implements BluetoothProfile.ServiceListener, notBuilder.addAction(R.drawable.ic_menu_cancel_holo_dark, mContext.getString(R.string.cancel), cancelIntent); notBuilder.setDeleteIntent(cancelIntent); - notBuilder.setWhen(0); // We do have progress indication on a per-file basis, but in a multi-file // transfer we don't know the total progress. So for now, just show an // indeterminate progress bar. @@ -386,7 +385,6 @@ public class HandoverManager implements BluetoothProfile.ServiceListener, notBuilder.setTicker(mContext.getString(R.string.beam_complete)); notBuilder.setContentTitle(mContext.getString(R.string.beam_complete)); notBuilder.setContentText(mContext.getString(R.string.beam_touch_to_view)); - notBuilder.setWhen(0); Intent viewIntent = buildViewIntent(); PendingIntent contentIntent = PendingIntent.getActivity(mContext, 0, viewIntent, 0); @@ -400,13 +398,11 @@ public class HandoverManager implements BluetoothProfile.ServiceListener, notBuilder.setSmallIcon(android.R.drawable.stat_sys_download_done); notBuilder.setTicker(mContext.getString(R.string.beam_failed)); notBuilder.setContentTitle(mContext.getString(R.string.beam_failed)); - notBuilder.setWhen(0); } else if (state == STATE_CANCELLED) { notBuilder.setAutoCancel(false); notBuilder.setSmallIcon(android.R.drawable.stat_sys_download_done); notBuilder.setTicker(mContext.getString(R.string.beam_canceled)); notBuilder.setContentTitle(mContext.getString(R.string.beam_canceled)); - notBuilder.setWhen(0); } else { return; } -- cgit v1.1