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

Commit 6a47a2ca authored by Sanjana Sunil's avatar Sanjana Sunil
Browse files

Fix documentation on unbinding for bindServiceAsUser()

Similar to bindService(), even if bindServiceAsUser() returns false,
unbindService() must still be called to allow the service to shut down.
The documentation is updated to reflect this.

Bug: 212663289
Test: m ds-docs-java
Change-Id: I780d307f4a0ebf8bef508932181e580f168b5578
parent e920dac7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3615,9 +3615,8 @@ public abstract class Context {
     *          {@link #BIND_ADJUST_WITH_ACTIVITY}.
     * @return {@code true} if the system is in the process of bringing up a
     *         service that your client has permission to bind to; {@code false}
     *         if the system couldn't find the service. If this value is {@code true}, you
     *         should later call {@link #unbindService} to release the
     *         connection.
     *         if the system couldn't find the service. You should call {@link #unbindService}
     *         to release the connection even if this method returned {@code false}.
     *
     * @throws SecurityException if the client does not have the required permission to bind.
     */