diff options
author | Ashwini Munigala <AshwiniM@codeaurora.org> | 2014-08-28 17:11:33 +0530 |
---|---|---|
committer | Ashwini Munigala <AshwiniM@codeaurora.org> | 2014-08-28 20:28:10 +0530 |
commit | 8c5ecff051e6394bc3514282160db185426a79e1 (patch) | |
tree | 90b62d97f6aa521311ce2d4d7dd998e92ae763fb /src | |
parent | 18533b584413d398d707de4fad6acee29d5b0db8 (diff) | |
download | android_packages_apps_BluetoothExt-8c5ecff051e6394bc3514282160db185426a79e1.tar.gz android_packages_apps_BluetoothExt-8c5ecff051e6394bc3514282160db185426a79e1.tar.bz2 android_packages_apps_BluetoothExt-8c5ecff051e6394bc3514282160db185426a79e1.zip |
FTP: Modify notification deleteIntent and add FLAG_NO_CLEAR.
Modifiy deleteIntent to disallow the authorization instead
of access allow. Mark FLAG_NO_CLEAR, defaults and priority
same as MAP and PBAP authorization notifications.
Change-Id: I5af0564c3201cff154f6a8bde05f02de76699afd
CRs-fixed: 711006
Diffstat (limited to 'src')
-rw-r--r-- | src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java b/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java index 9f37533..c244560 100644 --- a/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java +++ b/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java @@ -790,15 +790,16 @@ public class BluetoothFtpService extends Service { Notification notification = null; String name = getRemoteDeviceName(); if (action.equals(ACCESS_REQUEST_ACTION)) { - deleteIntent.setAction(ACCESS_ALLOWED_ACTION); + deleteIntent.setAction(ACCESS_DISALLOWED_ACTION); notification = new Notification(android.R.drawable.stat_sys_data_bluetooth, getString(R.string.ftp_notif_ticker), System.currentTimeMillis()); notification.setLatestEventInfo(this, getString(R.string.ftp_notif_ticker), getString(R.string.ftp_notif_message, name), PendingIntent .getActivity(this, 0, clickIntent, 0)); notification.flags |= Notification.FLAG_AUTO_CANCEL; - notification.flags |= Notification.FLAG_ONLY_ALERT_ONCE; - notification.defaults = Notification.DEFAULT_SOUND; + notification.flags |= Notification.FLAG_NO_CLEAR; + notification.priority = Notification.PRIORITY_MAX; + notification.defaults = Notification.DEFAULT_ALL; notification.deleteIntent = PendingIntent.getBroadcast(this, 0, deleteIntent, 0); nm.notify(NOTIFICATION_ID_ACCESS, notification); } else if (action.equals(AUTH_CHALL_ACTION)) { |