| | |
| | | tv_positive.setText(positiveButtonText); |
| | | tv_positive.setOnClickListener(new View.OnClickListener() { |
| | | public void onClick(View v) { |
| | | try { |
| | | ShoppingApi.userProtocolListener(context, UserUtil.getUid(context) , 1, null); |
| | | } catch (Exception e) { |
| | | } |
| | | positiveButtonClickListener.onClick(dialog, |
| | | DialogInterface.BUTTON_POSITIVE); |
| | | } |
| | |
| | | tv_negative.setText(negativeButtonText); |
| | | tv_negative.setOnClickListener(new View.OnClickListener() { |
| | | public void onClick(View v) { |
| | | try { |
| | | ShoppingApi.userProtocolListener(context, UserUtil.getUid(context), 0, null); |
| | | } catch (Exception e) { |
| | | } |
| | | negativeButtonClickListener.onClick(dialog, |
| | | DialogInterface.BUTTON_NEGATIVE); |
| | | |