summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sarah Chin <sarahchin@google.com> 2021-01-21 23:10:20 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-01-21 23:10:20 +0000
commit90b6c9def0c046e9cec213e99cc413d083120ef5 (patch)
tree44329447f5157fb0427f1ca23f15cc847292a243
parentea2939675284e7492f21d57cc73d9e4cd98af79c (diff)
parenta906fd5e141ca76133f2fd2abe32d11ed98503a7 (diff)
Merge "Update TelephonyDisplayInfo docs" am: a906fd5e14
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1557000 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iaa3747cf505974fa1faea05589b981fd687d0109
-rw-r--r--telephony/java/android/telephony/TelephonyDisplayInfo.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyDisplayInfo.java b/telephony/java/android/telephony/TelephonyDisplayInfo.java
index 3d5c6aad1042..1fcb504e7895 100644
--- a/telephony/java/android/telephony/TelephonyDisplayInfo.java
+++ b/telephony/java/android/telephony/TelephonyDisplayInfo.java
@@ -29,6 +29,10 @@ import java.util.Objects;
* information is provided in accordance with carrier policy and branding preferences; it is not
* necessarily a precise or accurate representation of the current state and should be treated
* accordingly.
+ * To be notified of changes in TelephonyDisplayInfo, use
+ * {@link TelephonyManager#registerPhoneStateListener} with a {@link PhoneStateListener}
+ * that implements {@link PhoneStateListener.DisplayInfoChangedListener}.
+ * Override the onDisplayInfoChanged() method to handle the broadcast.
*/
public final class TelephonyDisplayInfo implements Parcelable {
/**