Skip to content

Commit 097ec6f

Browse files
committed
fix ConfirmDialogFragment button text
1 parent 51f8500 commit 097ec6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/localhost/toolkit/app/fragment/ConfirmDialogFragment.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
3737
builder.setMessage(getArguments().getString(MESSAGE));
3838
if (getArguments().containsKey(ICON))
3939
builder.setIcon(new BitmapDrawable(getResources(), (Bitmap) getArguments().getParcelable(ICON)));
40-
builder.setPositiveButton(getArguments().containsKey(POSITIVE_BUTTON) ? getString(android.R.string.ok) : getArguments().getString(POSITIVE_BUTTON), new OnClickListener() {
40+
builder.setPositiveButton(getArguments().containsKey(POSITIVE_BUTTON) ? getArguments().getString(POSITIVE_BUTTON) : getString(android.R.string.ok), new OnClickListener() {
4141
@Override
4242
public void onClick(DialogInterface dialog, int which) {
4343
assert getArguments() != null;
4444
getOnConfirmedListener().onConfirmation(getArguments().getSerializable(EXTRA), DialogInterface.BUTTON_POSITIVE);
4545
}
4646
});
47-
builder.setNegativeButton(getArguments().containsKey(NEGATIVE_BUTTON) ? getString(android.R.string.cancel) : getArguments().getString(NEGATIVE_BUTTON), new OnClickListener() {
47+
builder.setNegativeButton(getArguments().containsKey(NEGATIVE_BUTTON) ? getArguments().getString(NEGATIVE_BUTTON) : getString(android.R.string.cancel), new OnClickListener() {
4848
@Override
4949
public void onClick(DialogInterface dialog, int which) {
5050
assert getArguments() != null;

0 commit comments

Comments
 (0)