diff --git a/app/src/main/java/com/simplemobiletools/calendar/activities/DayActivity.java b/app/src/main/java/com/simplemobiletools/calendar/activities/DayActivity.java index bd1c4036b..69ab0665a 100644 --- a/app/src/main/java/com/simplemobiletools/calendar/activities/DayActivity.java +++ b/app/src/main/java/com/simplemobiletools/calendar/activities/DayActivity.java @@ -124,8 +124,8 @@ public class DayActivity extends SimpleActivity datePicker.init(dateTime.getYear(), dateTime.getMonthOfYear() - 1, dateTime.getDayOfMonth(), null); alertDialog.setView(view); - alertDialog.setNegativeButton("Cancel", null); - alertDialog.setPositiveButton("OK", new DialogInterface.OnClickListener() { + alertDialog.setNegativeButton(android.R.string.cancel, null); + alertDialog.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { final int month = datePicker.getMonth() + 1; final int year = datePicker.getYear(); diff --git a/app/src/main/java/com/simplemobiletools/calendar/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/calendar/activities/MainActivity.java index 58bfdb621..746e2d19b 100644 --- a/app/src/main/java/com/simplemobiletools/calendar/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/calendar/activities/MainActivity.java @@ -187,8 +187,8 @@ public class MainActivity extends SimpleActivity implements Calendar { datePicker.init(dateTime.getYear(), dateTime.getMonthOfYear() - 1, 1, null); alertDialog.setView(view); - alertDialog.setNegativeButton("Cancel", null); - alertDialog.setPositiveButton("OK", new DialogInterface.OnClickListener() { + alertDialog.setNegativeButton(android.R.string.cancel, null); + alertDialog.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { final int month = datePicker.getMonth() + 1; final int year = datePicker.getYear(); diff --git a/app/src/main/res/layout/widget_config.xml b/app/src/main/res/layout/widget_config.xml index 3cc83cd5f..bbcc4025d 100644 --- a/app/src/main/res/layout/widget_config.xml +++ b/app/src/main/res/layout/widget_config.xml @@ -53,7 +53,7 @@ android:fontFamily="sans-serif-light" android:paddingLeft="@dimen/activity_margin" android:paddingRight="@dimen/activity_margin" - android:text="OK" + android:text="@android:string/ok" android:textColor="@android:color/white" android:textSize="@dimen/config_text_size"/>