The list does not follow the UX dialog design doc in alert dialog.
Please refer the comment#1 at bug and there are change below - the divider is 4dp - the item's radius is different in the list. Bug: 216233391 Test: manual test: check the UI make RunSettingsRoboTests ROBOTEST_FILTER=SimListDialogFragmentTest (PASS) Change-Id: I758d60202fcf477aeb49014e60b949e7ad08c082
This commit is contained in:
@@ -26,8 +26,6 @@ import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -126,18 +124,10 @@ public class SelectSpecificDataSimDialogFragment extends SimDialogFragment imple
|
||||
|
||||
View content = LayoutInflater.from(getContext()).inflate(
|
||||
R.layout.sim_confirm_dialog_multiple_enabled_profiles_supported, null);
|
||||
TextView dialogMessage = content.findViewById(R.id.msg);
|
||||
TextView dialogMessage = content != null ? content.findViewById(R.id.msg) : null;
|
||||
if (!TextUtils.isEmpty(message) && dialogMessage != null) {
|
||||
dialogMessage.setText(message);
|
||||
}
|
||||
|
||||
final ListView lvItems = content.findViewById(R.id.carrier_list);
|
||||
if (lvItems != null) {
|
||||
lvItems.setVisibility(View.GONE);
|
||||
}
|
||||
final LinearLayout infoOutline = content.findViewById(R.id.info_outline_layout);
|
||||
if (infoOutline != null) {
|
||||
infoOutline.setVisibility(View.GONE);
|
||||
dialogMessage.setVisibility(View.VISIBLE);
|
||||
}
|
||||
dialog.setView(content);
|
||||
|
||||
|
Reference in New Issue
Block a user