Merge "Apply SIMPLE strategy to TextView's description" into tm-qpr-dev am: 720643665a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20117383

Change-Id: I0737883a329b9feaaf9361929b16045ab75a4bd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ling Ma
2022-11-10 21:30:28 +00:00
committed by Automerger Merge Worker

View File

@@ -32,6 +32,7 @@ import android.telephony.SubscriptionManager;
import android.telephony.TelephonyDisplayInfo;
import android.telephony.TelephonyManager;
import android.text.Html;
import android.text.Layout;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.util.Log;
@@ -397,6 +398,7 @@ public class InternetDialog extends SystemUIDialog implements
if (!TextUtils.isEmpty(summary)) {
mMobileSummaryText.setText(
Html.fromHtml(summary, Html.FROM_HTML_MODE_LEGACY));
mMobileSummaryText.setBreakStrategy(Layout.BREAK_STRATEGY_SIMPLE);
mMobileSummaryText.setVisibility(View.VISIBLE);
} else {
mMobileSummaryText.setVisibility(View.GONE);