Fix crash when tapping QS dialog "sim" section (toast creation)
The toast was being created from the NOTIFICATION_SHADE WindowContext, but it was triggering a TYPE_STATUS_BAR_SUB_PANEL new window addition, which is a system window and is not supported as NOTIFICATION_SHADE subwindow. This cl gets the correct context (with TYPE_STATUS_BAR_SUB_PANEL) from ShadeDialogContextInteractor, and adds the window from the WM obtained from that context. Bug: 446773665 Test: trigger a toast from internet QS dialog. Flag: NONE bugfix Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:b0c867b147bca3535ea0d9cffab47584da9d2a60 Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:4cba9d6a03dcab1b239f353f1f2c25e1be540bf3 Merged-In: I18ee2b73aea41edd259c913cac27b5637966d014 Change-Id: I18ee2b73aea41edd259c913cac27b5637966d014
Loading
Please register or sign in to comment