summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/16/changes
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2012-08-27 16:55:04 -0700
committerCraig Mautner <cmautner@google.com>2012-08-28 14:28:53 -0700
commitb6ee2a24292120f95bb5da4539a0672280544be3 (patch)
treec1c563cd5ee28954827a02f1c7f29a3d9fabf22f /docs/html/sdk/api_diff/16/changes
parentac137b3211818f9e72f9ffbaf541ad8a1ef27eb1 (diff)
Use correct WindowManager for Toast.
The WindowManager retrieved from the activity Context with getSystemService is incorrect for a Toast. Because it contains a parent window when addView is called its LayoutParams.token is set to the value of the parent window. Then when an Activity is dismissed WindowManagerGlobal.closeAll() sees the incorrect token and incorrectly closes the Toast. This fix uses the application Context instead of the activity Context to retrieve a WindowManager with no parent window. This leaves the token unchanged and keeps from dismissing the toast when the activity is closed. Fixes bug 7048792. Change-Id: I92c3095d8fabd6e9e4206e9bc8e917885ab322a9
Diffstat (limited to 'docs/html/sdk/api_diff/16/changes')
0 files changed, 0 insertions, 0 deletions