diff options
author | Dan Sandler <dsandler@android.com> | 2014-01-30 14:12:28 -0500 |
---|---|---|
committer | Dan Sandler <dsandler@android.com> | 2014-01-30 14:20:43 -0500 |
commit | bfe61f696de3ceecda51612d3b26f20af33bc16c (patch) | |
tree | fdc40fcbbf570d60dfc0e82697823f5d93e9c1e5 /packages/SystemUI/src/com/android/systemui/usb | |
parent | 87b9ef5228ba6459e5feb661915c597f23688802 (diff) | |
download | frameworks_base-bfe61f696de3ceecda51612d3b26f20af33bc16c.zip frameworks_base-bfe61f696de3ceecda51612d3b26f20af33bc16c.tar.gz frameworks_base-bfe61f696de3ceecda51612d3b26f20af33bc16c.tar.bz2 |
Make some notifications public (safe for secure lockscreens):
- USB connected
- ADB enabled
- Low storage
- USB mass storage status
- Tethering status
Change-Id: I8224d7bcc8141fc90ac5e28d4392c52724c524a7
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/usb')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java | 3 |
1 files changed, 3 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 2c36ab7..0adb32f 100644 --- a/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java +++ b/packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java @@ -311,6 +311,8 @@ public class StorageNotification extends SystemUI { } mUsbStorageNotification.setLatestEventInfo(mContext, title, message, pi); + mUsbStorageNotification.visibility = Notification.VISIBILITY_PUBLIC; + final boolean adbOn = 1 == Settings.Global.getInt( mContext.getContentResolver(), Settings.Global.ADB_ENABLED, @@ -401,6 +403,7 @@ public class StorageNotification extends SystemUI { mMediaStorageNotification.icon = icon; mMediaStorageNotification.setLatestEventInfo(mContext, title, message, pi); + mMediaStorageNotification.visibility = Notification.VISIBILITY_PUBLIC; } final int notificationId = mMediaStorageNotification.icon; |