Fix IMEI is not selectable

By settings textIsSelectable = true

Also unify all the similar logic into @style/device_info_dialog_value

Fix: 305248578
Test: manual - on About phone page
Change-Id: Iaa6b4ab45067a01106367de3b8d81d5df51bd6dc
This commit is contained in:
Chaohui Wang
2023-11-06 11:01:18 +08:00
parent 89a3f9b194
commit c744aaabae
4 changed files with 12 additions and 8 deletions

View File

@@ -111,10 +111,7 @@ public class SimStatusDialogFragment extends InstrumentedDialogFragment {
Log.d(TAG, "Fragment not attached yet.");
return;
}
setText(viewId, text, true);
}
public void setText(int viewId, CharSequence text, boolean enableCopy) {
final TextView textView = mRootView.findViewById(viewId);
if (textView == null) {
return;
@@ -125,6 +122,5 @@ public class SimStatusDialogFragment extends InstrumentedDialogFragment {
text = PhoneNumberUtil.expandByTts(text);
}
textView.setText(text);
textView.setTextIsSelectable(enableCopy);
}
}