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

Commit 91b2555e authored by Jordan Liu's avatar Jordan Liu
Browse files

Clarify PhoneStateListener documentation

onXStateChanged() methods are called when the X state changes, but also
once on initial registration. This is called out in the documentation
for TelephonyManager.listen(), but we should clarify it here too.

Fixes: 124204168
Test: no change to behavior
Change-Id: Ie0fe8c90ff5610597f810d6ba8425138b8a286ee
parent f199334e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -45,7 +45,8 @@ import java.util.concurrent.Executor;
 * <p>
 * Override the methods for the state that you wish to receive updates for, and
 * pass your PhoneStateListener object, along with bitwise-or of the LISTEN_
 * flags to {@link TelephonyManager#listen TelephonyManager.listen()}.
 * flags to {@link TelephonyManager#listen TelephonyManager.listen()}. Methods are
 * called when the state changes, os well as once on initial registration.
 * <p>
 * Note that access to some telephony information is
 * permission-protected. Your application won't receive updates for protected