OSDN Git Service

Fix swapped toast timeouts.
authorRobert Carr <racarr@google.com>
Fri, 22 Jul 2016 01:16:00 +0000 (18:16 -0700)
committerRobert Carr <racarr@google.com>
Fri, 22 Jul 2016 01:16:00 +0000 (18:16 -0700)
commit017dbf59c86ea8bdab0c2319d0f21daab26ba2e6
tree6dbaf53dc8fd42f38f68cbe30a53c1f83e93bdff
parent0979352b1a739e4ea9e37c09a571676ab38197fc
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
core/java/android/widget/Toast.java