Commit 9ce685b
Christopher Tate
Make immersive mode public & imply update locking
Activity.setImmersive(boolean) / android:immersive="bool" are now public.
In addition, if the foreground activity is immersive then an update lock
will be held on its behalf. This lets applications such as movie players
suppress the display of intrusive notifications, OTA-availability dialogs,
and the like while they are displaying content that ought not to be
rudely interrupted.
The update lock aspect of this mode is *advisory*, not binding -- the
update mechanism is not actually constrained; it simply uses this information
in deciding whether/when to prompt the user. It's more a guideline than
a rule.
Bug 6154438
Change-Id: Ibd3491fc437077f3fa0d9708ed91955121e8c8771 parent 179239b commit 9ce685b
File tree
4 files changed
+40
-4
lines changed- api
- core/java/android
- app
- content/pm
- services/java/com/android/server/am
4 files changed
+40
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2557 | 2557 | | |
2558 | 2558 | | |
2559 | 2559 | | |
| 2560 | + | |
2560 | 2561 | | |
2561 | 2562 | | |
2562 | 2563 | | |
| |||
2638 | 2639 | | |
2639 | 2640 | | |
2640 | 2641 | | |
| 2642 | + | |
2641 | 2643 | | |
2642 | 2644 | | |
2643 | 2645 | | |
| |||
5952 | 5954 | | |
5953 | 5955 | | |
5954 | 5956 | | |
| 5957 | + | |
5955 | 5958 | | |
5956 | 5959 | | |
5957 | 5960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4318 | 4318 | | |
4319 | 4319 | | |
4320 | 4320 | | |
4321 | | - | |
4322 | 4321 | | |
4323 | 4322 | | |
4324 | 4323 | | |
| |||
4341 | 4340 | | |
4342 | 4341 | | |
4343 | 4342 | | |
4344 | | - | |
4345 | 4343 | | |
4346 | 4344 | | |
4347 | 4345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
| |||
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
811 | 813 | | |
812 | 814 | | |
813 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
814 | 822 | | |
815 | 823 | | |
816 | 824 | | |
| |||
1710 | 1718 | | |
1711 | 1719 | | |
1712 | 1720 | | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
1713 | 1736 | | |
1714 | 1737 | | |
1715 | 1738 | | |
| |||
6667 | 6690 | | |
6668 | 6691 | | |
6669 | 6692 | | |
6670 | | - | |
| 6693 | + | |
6671 | 6694 | | |
6672 | 6695 | | |
6673 | 6696 | | |
6674 | 6697 | | |
| 6698 | + | |
| 6699 | + | |
| 6700 | + | |
| 6701 | + | |
| 6702 | + | |
| 6703 | + | |
| 6704 | + | |
| 6705 | + | |
| 6706 | + | |
| 6707 | + | |
| 6708 | + | |
| 6709 | + | |
| 6710 | + | |
6675 | 6711 | | |
6676 | 6712 | | |
6677 | 6713 | | |
| |||
0 commit comments