summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2016-06-02 15:29:16 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-06-06 10:14:28 -0700
commit3d98dae969b917d34efe85dbf45b67a6c8237304 (patch)
tree1705520001bd64f5021697be162dcfcd5ed2d271 /packages
parenta563b3040672c17dcbdf966acb2efc60824563d7 (diff)
downloadframeworks_base-3d98dae969b917d34efe85dbf45b67a6c8237304.zip
frameworks_base-3d98dae969b917d34efe85dbf45b67a6c8237304.tar.gz
frameworks_base-3d98dae969b917d34efe85dbf45b67a6c8237304.tar.bz2
SystemUI: Add support for persistent usb drive notification.
This option can be enabled via config_persistUsbDriveNotification Change-Id: I331a759aeb914e46e3ef4842896d3465d894707a TICKET: PAELLA-225
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java b/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
index 8ace946..dd47aab 100644
--- a/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
+++ b/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
@@ -362,6 +362,8 @@ public class StorageNotification extends SystemUI {
mContext.getString(R.string.ext_media_unmount_action),
buildUnmountPendingIntent(vol)))
.setContentIntent(browseIntent)
+ .setOngoing(mContext.getResources().getBoolean(
+ R.bool.config_persistUsbDriveNotification))
.setCategory(Notification.CATEGORY_SYSTEM)
.setPriority(Notification.PRIORITY_LOW);
// Non-adoptable disks can't be snoozed.