Commit Graph

7 Commits

Author SHA1 Message Date
Bernardo Rufino
353c754cd0 Remove FLAG_SHOW_FOR_ALL_USERS to avoid crash
Temporarily removing flag to avoid crash in bug linked while we figure
out a solution for this. More details on bug linked.

Test: 1. Settings > Security > Enable Screen pinning.
      2. From overview > Tap on any app info > Select screen pinning
         > Tap on home bar and observe logcat
      3. Verify no crash
Bug: 149408635
Change-Id: Ieba081eae3f0cd66f99c54a2deb4e9653ec4cd9d
2020-02-13 15:20:24 +00:00
Roshan Pius
a3f89c6882 Window: Mark SHOW_FOR_ALL_USERS flag as @SystemApi
Bug: 142090228
Test: Compiles
Change-Id: I850c7759dc909727f73e40fb6331871a9de25f20
2019-10-12 08:32:44 -07:00
Gus Prevas
ab33679d7e Fixes import ordering.
Test: n/a
Change-Id: I432e11b52deb7974e50f62076af3b7aa07e364b6
2018-11-14 14:16:52 -05:00
Matthew Ng
9c3bce5c44 Fixes crash null exception on land/seascape pinned orientations
Reverts the revert of ag/3546427 and fixes the regression.

Didn't add the ids to the layout in landscape and seascape that caused
the crash. Also fixed a boolean parsing issue in CommandQueue and
correcting the unpin button press when it lays the buttons after
overview proxy connects to launcher.

Change-Id: I59791f6a08e11d17dfb32ab3a2733766c8cf1036
Fixes: 72800226
Test: manual, rotate screen and pin (like in play movies)
2018-02-01 14:16:11 -08:00
Matthew Ng
9b9d0c513a Revert "Uses back and home button for screen pinning when recents is invisible"
This reverts commit c4356fb753.

Reason for revert: Regression b/72800226

Change-Id: Iaa14de444c00a9da7c3b3a6d8828f40d66a8ac29
2018-02-01 18:04:00 +00:00
Matthew Ng
c4356fb753 Uses back and home button for screen pinning when recents is invisible
All the text and screen pinning hint shows tells the user that the back
and home button should be held to exit screen pinning. The hint also do
not have the recents button shown if it is invisible. The toast code has
been moved to recents and services calls through to post a toast message
depending if the recents button is visible.

Test: manual
Fixes: 72059911
Change-Id: I93abf5072b97760f33e7e77421544a4b3ad27beb
2018-01-31 15:06:02 -08:00
Jason Monk
23a8ed802d Show volume restriction toast on all users
Bug: 21642285
Change-Id: I18ed4036543e1f13cd3010b9e1d790b16aa8e7a0
2015-07-13 11:02:13 -04:00