Merge "Remove collapsePanels() publicAlternatives" into sc-dev

This commit is contained in:
Bernardo Rufino
2021-03-17 11:30:15 +00:00
committed by Android (Google) Code Review

View File

@@ -331,10 +331,12 @@ public class StatusBarManager {
* @hide
*/
@RequiresPermission(android.Manifest.permission.STATUS_BAR)
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, publicAlternatives = "Send {@link "
+ "android.content.Intent#ACTION_CLOSE_SYSTEM_DIALOGS} instead.")
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, publicAlternatives = "This operation"
+ " is not allowed anymore, please see {@link android.content"
+ ".Intent#ACTION_CLOSE_SYSTEM_DIALOGS} for more details.")
@TestApi
public void collapsePanels() {
try {
final IStatusBarService svc = getService();
if (svc != null) {