commit | ce636284ecbfe0a58b58a89d6705f3410ac9e908 | [log] [tgz] |
---|---|---|
author | Tyler Gunn <tgunn@google.com> | Fri Sep 25 21:54:18 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Sep 25 21:54:18 2020 +0000 |
tree | ed37c1491dc09190272e3989608e15873b255779 | |
parent | f6bcf2334ecd87bfea276571ddeeba9b092d8e1b [diff] | |
parent | d3d88afee78473034e0f23b21743e67c260a6983 [diff] |
Fix issue where "learn more" link on 5G NR settings doesn't work. am: d3d88afee7 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12700756 Change-Id: I64aae8431da809ce109d68a0663c6c663235693e
diff --git a/src/com/android/settings/network/telephony/NrDisabledInDsdsFooterPreferenceController.java b/src/com/android/settings/network/telephony/NrDisabledInDsdsFooterPreferenceController.java index 3911fb8..78dfe51 100644 --- a/src/com/android/settings/network/telephony/NrDisabledInDsdsFooterPreferenceController.java +++ b/src/com/android/settings/network/telephony/NrDisabledInDsdsFooterPreferenceController.java
@@ -55,6 +55,13 @@ super.updateState(preference); if (preference != null) { + // This is necessary to ensure that setting the title to the spannable string returned + // by getFooterText will be accepted. Internally, setTitle does an equality check on + // the spannable string being set to the text already set on the preference. That + // equality check apparently only takes into account the raw text and not and spannables + // that are part of the text. So we clear the title before applying the spannable + // footer to ensure it is accepted. + preference.setTitle(""); preference.setTitle(getFooterText()); } }