Merge "Make ShortcutInfo@getPersons() systemApi"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6d4ce1e5bb
@@ -1715,6 +1715,10 @@ package android.content.pm {
|
||||
field public boolean handleAllWebDataURI;
|
||||
}
|
||||
|
||||
public final class ShortcutInfo implements android.os.Parcelable {
|
||||
method @Nullable public android.app.Person[] getPersons();
|
||||
}
|
||||
|
||||
public class ShortcutManager {
|
||||
method @NonNull public java.util.List<android.content.pm.ShortcutManager.ShareShortcutInfo> getShareTargets(@NonNull android.content.IntentFilter);
|
||||
method public boolean hasShareTargets(@NonNull String);
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.content.pm;
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.annotation.UserIdInt;
|
||||
@@ -1482,6 +1483,7 @@ public final class ShortcutInfo implements Parcelable {
|
||||
* @hide
|
||||
*/
|
||||
@Nullable
|
||||
@SystemApi
|
||||
public Person[] getPersons() {
|
||||
return clonePersons(mPersons);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user