Show the pause and block app dialog when launch the paused/block app.
The pause app dialog and block app dialog are system type window, which means once the dialog is opened, the user must click the OK to accept it, and the user can't move to other windows or do another other things on the Chromebook before he/she clicks the OK button. Based on the discussion in 1056466, this CL is used to implement: For app block: 1. When the app is blocked, no matter the app is running or not, we won't show dialog, because it is Android controls the app running, and AppService can't know whether the app is running or not, due to the schedule issue. When AppService is notified about the app status changed, the app has been stopped. So rollback the dialog show in arc apps when the app status is changed. 2. After the app is blocked, when the app is clicked to launch, show the app block dialog. For app pause: 1. When Family link notifies AppService to pause app, AppService will show the pause app based on the family link's parameter. If the parameter is yes, then show the dialog, otherwise, don't show the dialog. This has been implemented, so no change for this CL. 2. After the app is paused, when the app is clicked to launch, get the latest time limit setting from family link, and show the app pause dialog. BUG=1056466 Change-Id: I2e9c5445f13820b63cca81954724bfed95c614be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2084033 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Reviewed-by:
Aga Wronska <agawronska@chromium.org> Cr-Commit-Position: refs/heads/master@{#748467}
Showing
Please register or sign in to comment