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:
@@ -114,6 +114,18 @@ public class DefaultCombinedPicker extends DefaultAppPickerFragment {
|
||||
setCancelListener(target.mCancelListener);
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected CharSequence getPositiveButtonText() {
|
||||
final Bundle bundle = getArguments();
|
||||
if (TextUtils.isEmpty(bundle.getString(EXTRA_KEY))) {
|
||||
return getContext().getString(
|
||||
R.string.credman_confirmation_turn_off_positive_button);
|
||||
}
|
||||
|
||||
return getContext().getString(
|
||||
R.string.credman_confirmation_change_provider_positive_button);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user