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

Commit 839e8535 authored by Bartosz Fabianowski's avatar Bartosz Fabianowski
Browse files

Add more explicit documentation for install reason

This CL adds more explicit documentation of the install reason argument /
return value to PackageInstaller.SessionInfo.

Bug: 37324584
Test: None

Change-Id: Ifd4ce43e33d89dd499ba4d1ae94ba33b05e27d16
parent a58438fd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1148,6 +1148,11 @@ public class PackageInstaller {
            }
        }

        /**
         * Set the reason for installing this package. Currently,
         * {@code PackageManager#INSTALL_REASON_UNKNOWN} and
         * {@code PackageManager#INSTALL_REASON_POLICY} are defined.
         */
        public void setInstallReason(int installReason) {
            this.installReason = installReason;
        }
@@ -1326,6 +1331,10 @@ public class PackageInstaller {
        /**
         * Return the reason for installing this package.
         *
         * @return The install reason, currently one of
         *         {@code PackageManager#INSTALL_REASON_UNKNOWN} and
         *         {@code PackageManager#INSTALL_REASON_POLICY}.
         *
         * @see PackageManager#INSTALL_REASON_UNKNOWN
         */
        public int getInstallReason() {