nativescript-modal-datetimepicker icon indicating copy to clipboard operation
nativescript-modal-datetimepicker copied to clipboard

Consider removing the toast showing Min/Max time

Open fpaaske opened this issue 5 years ago • 4 comments

This is not really a bug, but more a suggestion/change request.

I'm currently using version 1.2.4 of this plugin in a NativeScript 6 app. When I'm opening a time picker dialog with max or min time set in PickerOptions, a toast is shown with this information

image

Unfortunately, this text is not translatable and it looks weird to show this one message in English when the rest of the app is in a different language.

Please consider removing the toast.

Edit: I also see that 1.2.4 is not in any commit in this repo? Where is that release coming from?

fpaaske avatar Nov 02 '20 14:11 fpaaske

Good suggestion! We can add an option to turn off the toast and also to configure the text on it.

shiv19 avatar Nov 02 '20 18:11 shiv19

Yes, that sounds great! Hopefully it can be done on both version 1.x and 2.x :)

fpaaske avatar Nov 02 '20 21:11 fpaaske

@shiv19 @davecoffin did you get time to look at this?

fpaaske avatar Jan 20 '21 17:01 fpaaske

quick and dirty way is to comment out line 120-122 in node_modules/nativescript-modal-datetimepicker/modal-datetimepicker.android.js in your node_modules

// if (toastMsg !== "") {
//    android.widget.Toast.makeText(Application.android.foregroundActivity, toastMsg, android.widget.Toast.LENGTH_LONG).show();
// }

syahnur197 avatar Jan 29 '21 02:01 syahnur197