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

Commit 953fe483 authored by Esteban Talavera's avatar Esteban Talavera
Browse files

Fix getApplicationRestrictions documentation

The method never returns null, only empty bundle

Bug: 29178626
Change-Id: Ic53154eafe94c6c501b59932441d7ae1c89cb689
parent 2b92ce7a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2021,7 +2021,7 @@ public class UserManager {
    }

    /**
     * Returns a {@code Bundle} containing any saved application restrictions for this user, for the
     * Returns a {@link Bundle} containing any saved application restrictions for this user, for the
     * given package name. Only an application with this package name can call this method.
     *
     * <p>The returned {@link Bundle} consists of key-value pairs, as defined by the application,
@@ -2034,8 +2034,8 @@ public class UserManager {
     * </ul>
     *
     * @param packageName the package name of the calling application
     * @return a {@code Bundle} with the restrictions for that package, or {@code null} if there
     * are no saved restrictions.
     * @return a {@link Bundle} with the restrictions for that package, or an empty {@link Bundle}
     * if there are no saved restrictions.
     *
     * @see #KEY_RESTRICTIONS_PENDING
     */