Merge "Make ShortcutInfo@getPersons() systemApi"

This commit is contained in:
Mehdi Alizadeh
2019-02-25 21:02:11 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);
}