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:
@@ -23,7 +23,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/device_info_dialog_value"
|
||||
style="@style/DeviceAudioSharingText"
|
||||
android:id="@+id/share_audio_subtitle1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -31,7 +31,7 @@
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
<TextView
|
||||
style="@style/device_info_dialog_value"
|
||||
style="@style/DeviceAudioSharingText"
|
||||
android:id="@+id/share_audio_subtitle2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -27,8 +27,7 @@
|
||||
style="@style/device_info_dialog_value"
|
||||
android:id="@+id/esim_id_value"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textIsSelectable="true" />
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/esim_id_qrcode"
|
||||
|
@@ -433,6 +433,15 @@
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:paddingBottom">24dp</item>
|
||||
<item name="android:textIsSelectable">true</item>
|
||||
</style>
|
||||
|
||||
<style name="DeviceAudioSharingText">
|
||||
<item name="android:textAlignment">viewStart</item>
|
||||
<item name="android:fontFamily">@*android:string/config_bodyFontFamily</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:paddingBottom">24dp</item>
|
||||
</style>
|
||||
|
||||
<style name="ContextualCardStyle">
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user