示例#1
0
  @Override
  protected void showDialog(Bundle state) {
    setCurrentCdmaSubscriptionModeValue();

    super.showDialog(state);
    PhoneGlobals.getInstance().addSubInfoUpdateListener(this);
  }
  @Override
  protected void showDialog(final Bundle state) {
    super.showDialog(state);
    final AlertDialog dialog = (AlertDialog) getDialog();
    final ListView listView = dialog.getListView();
    final ListAdapter adapter = listView.getAdapter();
    final WrapperListAdapterImpl wrapperAdapter = createWrapperAdapter(adapter);

    // Adjust the selection because resetting the adapter loses the selection.
    final int selectedPosition = getValueIndex();
    listView.setAdapter(wrapperAdapter);
    if (selectedPosition != -1) {
      listView.setItemChecked(selectedPosition, true);
      listView.setSelection(selectedPosition);
    }
  }
 @Override
 protected void showDialog(Bundle state) {
   super.showDialog(state);
   DialogUtils.setDialogTitleDivider(getContext(), getDialog());
 }