diff options
| author | Robert Carr <racarr@google.com> | 2016-07-21 18:16:00 -0700 |
|---|---|---|
| committer | Robert Carr <racarr@google.com> | 2016-07-21 18:16:00 -0700 |
| commit | 017dbf59c86ea8bdab0c2319d0f21daab26ba2e6 (patch) | |
| tree | 6dbaf53dc8fd42f38f68cbe30a53c1f83e93bdff /core/java/android/widget/Toast.java | |
| parent | 0979352b1a739e4ea9e37c09a571676ab38197fc (diff) | |
Fix swapped toast timeouts.
LONG and SHORT were swapped. Also they weren't related to the
actual timeout values in NotificationManagerService. Set the timeout
to twice the duration. Just proposing to master since all the
toast timeout does in N is strip the FLAG_KEEP_SCREEN_ON_FLAG.
Change-Id: I5533e03b45d8f9518919b19ec53fc839443f8886
Diffstat (limited to 'core/java/android/widget/Toast.java')
| -rw-r--r-- | core/java/android/widget/Toast.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/Toast.java b/core/java/android/widget/Toast.java index 77626754264f..e147ed675f4a 100644 --- a/core/java/android/widget/Toast.java +++ b/core/java/android/widget/Toast.java @@ -357,8 +357,8 @@ public class Toast { WindowManager mWM; - static final long SHORT_DURATION_TIMEOUT = 5000; - static final long LONG_DURATION_TIMEOUT = 1000; + static final long SHORT_DURATION_TIMEOUT = 4000; + static final long LONG_DURATION_TIMEOUT = 7000; TN() { // XXX This should be changed to use a Dialog, with a Theme.Toast |
