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
…
…
cherrypick from ics-mr1 docs: source for nw app Change-Id: If50f407a0e56fa802fe9beedaa650e3a131872b2
…
…
Description
No description provided
Languages
Java
77.3%
Kotlin
9.2%
PowerBuilder
6.6%
C++
5.5%
AIDL
1%