Commit 790ec8d
Slim Heads up: change behaviour of back key
Currently back key hides the heads up. We change it that the back key is still
working for the app which has focus and not for the heads up at all.
Reasons:
1. A lot user requested this due that they often hide the heads up during they work
on the phone, simply due that the back button is often pressed on a normal workflow.
The results is indeed that a lot heads up windows are missed excidentaly.
2. First I thought to make it optional. But there is another big reason to do it this way. Current
behaviour is that the heads up view gets focus...and that we dispatch the back key only. Thing is
that other key events are still rooted to the heads up window. Well most things a user will not see.
But eg on apps with input field some keys on the IME keyboard do not work during the heads up is showing
which is a big no go when we assume that heads up needs to be as much non intrusive as possible.
That being said we remove the dispatch override and give the heads up window FLAG_NOT_FOCUSABLE flag
which will bypass any key events to the window behind which had focus before the heads up showed up.
FLAG_NOT_TOUCH_MODAL we can remove due that FLAG_NOT_FOCUSABLE automatically enables the FLAG_NOT_TOUCH_MODAL flag.
Change-Id: Ied4c7d2dd5b99f89af958f01db980a36d431bbc31 parent f7f1d32 commit 790ec8d
2 files changed
Lines changed: 1 addition & 15 deletions
File tree
- packages/SystemUI/src/com/android/systemui/statusbar
- phone
- policy
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
1600 | | - | |
| 1600 | + | |
1601 | 1601 | | |
1602 | 1602 | | |
1603 | 1603 | | |
| |||
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 176 | | |
191 | 177 | | |
192 | 178 | | |
| |||
0 commit comments