Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b07e037f authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato Committed by Android Build Coastguard Worker
Browse files

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
parent b1535119
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment