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:
@@ -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