diff options
-rw-r--r-- | core/res/res/values/cm_symbols.xml | 3 | ||||
-rw-r--r-- | core/res/res/values/config.xml | 3 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/core/res/res/values/cm_symbols.xml b/core/res/res/values/cm_symbols.xml index 0e517b7..8a71499 100644 --- a/core/res/res/values/cm_symbols.xml +++ b/core/res/res/values/cm_symbols.xml @@ -139,4 +139,7 @@ <!-- Uicc hotswapped event configuration needed notification --> <java-symbol type="string" name="uicc_hot_swapped_event_title" /> <java-symbol type="string" name="uicc_hot_swapped_event_text" /> + + <!-- Usb drive persistent notification --> + <java-symbol type="bool" name="config_persistUsbDriveNotification" /> </resources> diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 8629687..c7846cf 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2566,4 +2566,7 @@ <!-- Older rotation sensors are not setting event.timestamp correctly. Setting to true will use SystemClock.elapsedRealtimeNanos() to set timestamp. --> <bool name="config_useSystemClockforRotationSensor">false</bool> + + <!-- Whether to persist the notification for when a usb drive device is plugged in --> + <bool name="config_persistUsbDriveNotification">false</bool> </resources> 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. |