diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-11-09 23:02:59 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-11-09 23:02:59 +0000 |
| commit | 2f6bfcbd6f4e0ebf4beb193b5f1a9d3160cca30a (patch) | |
| tree | 1447d5d85059ec2c0a9e194ceaa6fd4956a397d0 /core/java/android | |
| parent | eee096197b68794cac91f7995d0751b8210c3684 (diff) | |
| parent | 3017fe4f517e88e35022648d5b4fa3ddc0d9eabc (diff) | |
Merge "Calling opChanged on package suspend / unsuspend"
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/content/pm/PackageManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index c1ac061e1f79..d3e40452d9fb 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -5825,16 +5825,16 @@ public abstract class PackageManager { * {@code android.permission.SUSPEND_APPS} can put any app on the device into a suspended state. * * <p>While in this state, the application's notifications will be hidden, any of its started - * activities will be stopped and it will not be able to show toasts or dialogs or ring the - * device. When the user tries to launch a suspended app, the system will, instead, show a + * activities will be stopped and it will not be able to show toasts or dialogs or play audio. + * When the user tries to launch a suspended app, the system will, instead, show a * dialog to the user informing them that they cannot use this app while it is suspended. * * <p>When an app is put into this state, the broadcast action * {@link Intent#ACTION_MY_PACKAGE_SUSPENDED} will be delivered to any of its broadcast * receivers that included this action in their intent-filters, <em>including manifest * receivers.</em> Similarly, a broadcast action {@link Intent#ACTION_MY_PACKAGE_UNSUSPENDED} - * is delivered when a previously suspended app is taken out of this state. - * </p> + * is delivered when a previously suspended app is taken out of this state. Apps are expected to + * use these to gracefully deal with transitions to and from this state. * * @return {@code true} if the calling package has been suspended, {@code false} otherwise. * |
