From f132c26a132f00d8507cf5fa147bdc37a5598eb8 Mon Sep 17 00:00:00 2001 From: NedaTopoljanac Date: Wed, 8 Aug 2018 15:55:47 +0100 Subject: [PATCH] Modifing Javadoc for setStatusBarDisabled To clarify documentation for use in lock screen. Test: not applicable Bug: 110247271 Fixes: 110247271 Change-Id: I256a6f4bc01f0f117cb082b541863d7af3ba95cd --- core/java/android/app/admin/DevicePolicyManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index cbd874176586c..dfdb7eb22773f 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -7722,6 +7722,9 @@ public class DevicePolicyManager { * LockTask mode will be registered, but will only take effect when the device leaves LockTask * mode. * + *

This policy does not have any effect while on the lock screen, where the status bar will + * not be disabled. Using LockTask instead of this method is recommended. + * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. * @param disabled {@code true} disables the status bar, {@code false} reenables it. * @return {@code false} if attempting to disable the status bar failed. {@code true} otherwise.