Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider removing the toast showing Min/Max time #75

Open
fpaaske opened this issue Nov 2, 2020 · 4 comments
Open

Consider removing the toast showing Min/Max time #75

fpaaske opened this issue Nov 2, 2020 · 4 comments

Comments

@fpaaske
Copy link

fpaaske commented Nov 2, 2020

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?

@shiv19
Copy link
Collaborator

shiv19 commented Nov 2, 2020

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

@fpaaske
Copy link
Author

fpaaske commented Nov 2, 2020

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

@fpaaske
Copy link
Author

fpaaske commented Jan 20, 2021

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

@syahnur197
Copy link

syahnur197 commented Jan 29, 2021

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();
// }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants