Commit 6e7625c
HeadsUp: Correctly add and remove the window
isAttachedToWindow() basically works to determine if the view was attached or not.
But on the boot up process when already addHeadsUpView is called but the system is not
fully up and a recreation happens (eg on TRDS...due that the UIModeManager is doing its work as soon as system is ready)
the view gets attached....but not removed on the recreation due that at this time isAttachedToWindow() will return false even though the
window was added.
To solve simply use a boolean instead of isAttachedToWindow()
Change-Id: Ib576a83cadc581683f2a5b0afc922c53b01888b71 parent 10dfc4d commit 6e7625c
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| |||
1594 | 1595 | | |
1595 | 1596 | | |
1596 | 1597 | | |
1597 | | - | |
| 1598 | + | |
1598 | 1599 | | |
1599 | 1600 | | |
1600 | 1601 | | |
| 1602 | + | |
1601 | 1603 | | |
1602 | 1604 | | |
1603 | 1605 | | |
| |||
1619 | 1621 | | |
1620 | 1622 | | |
1621 | 1623 | | |
1622 | | - | |
| 1624 | + | |
| 1625 | + | |
1623 | 1626 | | |
1624 | 1627 | | |
1625 | 1628 | | |
| |||
3933 | 3936 | | |
3934 | 3937 | | |
3935 | 3938 | | |
3936 | | - | |
| 3939 | + | |
3937 | 3940 | | |
3938 | 3941 | | |
3939 | 3942 | | |
| |||
0 commit comments