File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/src/main/java/fr/free/nrw/commons/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1010import android .support .v4 .app .DialogFragment ;
1111import android .support .v4 .app .FragmentActivity ;
1212
13+ import fr .free .nrw .commons .R ;
1314import timber .log .Timber ;
1415
1516public class DialogUtil {
@@ -102,11 +103,11 @@ public static AlertDialog getAlertDialogWithPositiveAndNegativeCallbacks(
102103 AlertDialog alertDialog = new Builder (context )
103104 .setTitle (title )
104105 .setMessage (message )
105- .setPositiveButton ("Okay" , (dialog , which ) -> {
106+ .setPositiveButton (context . getString ( R . string . ok ) , (dialog , which ) -> {
106107 dialog .dismiss ();
107108 callback .onPositiveButtonClicked ();
108109 })
109- .setNegativeButton ("Cancel" , (dialog , which ) -> {
110+ .setNegativeButton (context . getString ( R . string . cancel ) , (dialog , which ) -> {
110111 dialog .dismiss ();
111112 callback .onNegativeButtonClicked ();
112113 })
You can’t perform that action at this time.
0 commit comments