Update button strings for new design
Updates the positive button strings see mocks here: https://screenshot.googleplex.com/6hLciwYTPMsYytt https://screenshot.googleplex.com/ASAotxvEHnrDodq Implementation: https://hsv.googleplex.com/4658122816749568 https://hsv.googleplex.com/5590705238966272 Bug: 322074376 Change-Id: I8488d4b9414448bfbfc9462fe5450681bfbbfbdb Test: flash device
This commit is contained in:
@@ -138,11 +138,15 @@ public abstract class DefaultAppPickerFragment extends RadioButtonPickerFragment
|
||||
final Bundle bundle = getArguments();
|
||||
final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())
|
||||
.setMessage(bundle.getCharSequence(EXTRA_MESSAGE))
|
||||
.setPositiveButton(android.R.string.ok, this)
|
||||
.setPositiveButton(getPositiveButtonText(), this)
|
||||
.setNegativeButton(android.R.string.cancel, mCancelListener);
|
||||
return builder.create();
|
||||
}
|
||||
|
||||
protected CharSequence getPositiveButtonText() {
|
||||
return getContext().getString(android.R.string.ok);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
final Fragment fragment = getTargetFragment();
|
||||
|
Reference in New Issue
Block a user