diff options
author | John Spurlock <jspurlock@google.com> | 2013-10-12 17:50:42 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2013-10-14 13:11:21 -0400 |
commit | f1a36648ca099d7ffa8a19e403673820d4b8417a (patch) | |
tree | fa729e97bfa743f2bdceba92a57c373067e42502 /services/java/com/android/server/NotificationManagerService.java | |
parent | 69f49434ec7240b3b1195b41348ddedba1bd1e98 (diff) |
Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY.
Migrate transient bar mode to IMMERSIVE_STICKY, and
introduce new behavior for IMMERSIVE: namely the
opaque bars are revealed by clearing the flags on swipe.
Remove low-profile optimization that confuses api demos
and other apps using low-profile as a signal.
TransientNavigationConfirmation renamed to
ImmersiveModeConfirmation, and its associated resources,
since the confirmation is now shown when the nav bar is
shown in either of the two immersive modes.
Remove unused Toast.makeBar and associated hidden framework
bits now that the confirmation uses a cling instead.
Bug:11062108
Change-Id: Iae49d31973940b9bee9f5b1827756db5eaa76aa3
Diffstat (limited to 'services/java/com/android/server/NotificationManagerService.java')
-rw-r--r-- | services/java/com/android/server/NotificationManagerService.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 7431f1d0af43..04386759df50 100644 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -1550,11 +1550,9 @@ public class NotificationManagerService extends INotificationManager.Stub private void scheduleTimeoutLocked(ToastRecord r) { mHandler.removeCallbacksAndMessages(r); - if (r.duration != Toast.LENGTH_INFINITE) { - Message m = Message.obtain(mHandler, MESSAGE_TIMEOUT, r); - long delay = r.duration == Toast.LENGTH_LONG ? LONG_DELAY : SHORT_DELAY; - mHandler.sendMessageDelayed(m, delay); - } + Message m = Message.obtain(mHandler, MESSAGE_TIMEOUT, r); + long delay = r.duration == Toast.LENGTH_LONG ? LONG_DELAY : SHORT_DELAY; + mHandler.sendMessageDelayed(m, delay); } private void handleTimeout(ToastRecord record) |