summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-05-22 14:33:43 -0700
committerMartijn Coenen <maco@google.com>2012-05-22 14:33:43 -0700
commitbefa3d6d8bca86f28968069128d6f454b39ed9a8 (patch)
tree4df078cdb7bb506aad5ac04a66799946e23ed06a /src/com
parent973ff9be9a4de6b493c6ec09900b3015188b9b38 (diff)
downloadpackages_apps_nfc-befa3d6d8bca86f28968069128d6f454b39ed9a8.zip
packages_apps_nfc-befa3d6d8bca86f28968069128d6f454b39ed9a8.tar.gz
packages_apps_nfc-befa3d6d8bca86f28968069128d6f454b39ed9a8.tar.bz2
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
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/nfc/handover/HandoverManager.java4
1 files changed, 0 insertions, 4 deletions
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;
}