Skip to content

Commit

Permalink
Merge pull request #17 from OutSystems/fix/android-minor-issues
Browse files Browse the repository at this point in the history
Fix ::: Android ::: Minor issue
  • Loading branch information
OS-ricardomoreirasilva authored Dec 2, 2024
2 parents b1af564 + cbd108b commit ee03541
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/android/nl/xservices/plugins/Calendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ private void createEventInteractively(JSONArray args) {
final JSONObject jsonFilter = args.getJSONObject(0);
final JSONObject argOptionsObject = jsonFilter.getJSONObject("options");

if(jsonFilter.getLong("startTime") > jsonFilter.getLong("endTime")){
callback.error("The start date must be before the end date");
return;
}

cordova.getThreadPool().execute(new Runnable() {
@Override
public void run() {
Expand Down

0 comments on commit ee03541

Please sign in to comment.