commit | 70f0d229c02b91d7b987c4972b9b08bb9dcd04b5 | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Sun Apr 10 16:33:08 2016 -0700 |
committer | Robert Carr <racarr@google.com> | Wed Apr 13 13:32:58 2016 -0700 |
tree | 249613efe89c0fddf67f04bd599920007e67e289 | |
parent | fd580f7d1a5a19b062bea49602f0f6136bce7e5e [diff] |
Add WindowManager side timeout for toasts. If the thread a toast is shown on is shut down, the attempt to post the hide message to it's handler will fail and it will never request removal. If this was only some application background thread we will also not receive a death notification. It seems best to use a timeout to ensure we don't need the clients cooperation, espescially as toasts can keep the screen on. Bug: 21693547 Change-Id: I1d6e54ded5b9e2050daedc4d263e2e21fbe69862