diff options
| author | 2019-02-11 11:36:49 -0800 | |
|---|---|---|
| committer | 2019-02-11 11:41:45 -0800 | |
| commit | 91b2555e8c9b4ab8d3b042514b2a5f7f1b98c7c5 (patch) | |
| tree | d94dc6c1a5b1fb6843fe6f2da77cf5c64b1fa2f0 | |
| parent | f199334e3e65cdf6d43fc69ba378ae2dcca2a5af (diff) | |
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
| -rw-r--r-- | telephony/java/android/telephony/PhoneStateListener.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/PhoneStateListener.java b/telephony/java/android/telephony/PhoneStateListener.java index fea1b7b08a20..2c9ba1dfff7b 100644 --- a/telephony/java/android/telephony/PhoneStateListener.java +++ b/telephony/java/android/telephony/PhoneStateListener.java @@ -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 |