Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65208114 authored by Varun Shah's avatar Varun Shah Committed by Android (Google) Code Review
Browse files

Merge "Added @NonNull to LauncherApps#getAppUsageLimit parameters."

parents cf98fb8c 2c9263c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11241,7 +11241,7 @@ package android.content.pm {
  public class LauncherApps {
    method public java.util.List<android.content.pm.LauncherActivityInfo> getActivityList(String, android.os.UserHandle);
    method @NonNull public java.util.List<android.content.pm.PackageInstaller.SessionInfo> getAllPackageInstallerSessions();
    method @Nullable public android.content.pm.LauncherApps.AppUsageLimit getAppUsageLimit(String, android.os.UserHandle);
    method @Nullable public android.content.pm.LauncherApps.AppUsageLimit getAppUsageLimit(@NonNull String, @NonNull android.os.UserHandle);
    method public android.content.pm.ApplicationInfo getApplicationInfo(@NonNull String, int, @NonNull android.os.UserHandle) throws android.content.pm.PackageManager.NameNotFoundException;
    method public android.content.pm.LauncherApps.PinItemRequest getPinItemRequest(android.content.Intent);
    method public java.util.List<android.os.UserHandle> getProfiles();
+2 −1
Original line number Diff line number Diff line
@@ -795,7 +795,8 @@ public class LauncherApps {
     * @throws SecurityException when the caller is not the active launcher.
     */
    @Nullable
    public LauncherApps.AppUsageLimit getAppUsageLimit(String packageName, UserHandle user) {
    public LauncherApps.AppUsageLimit getAppUsageLimit(@NonNull String packageName,
            @NonNull UserHandle user) {
        try {
            return mService.getAppUsageLimit(mContext.getPackageName(), packageName, user);
        } catch (RemoteException re) {