Skip to content

Commit

Permalink
fix android
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliiBlagodir committed Oct 8, 2013
1 parent cd96f97 commit fd911d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<param name="android-package" value="com.plugin.datepicker.DatePickerPlugin"/>
</feature>
</config-file>

<js-module src="www/android/DatePicker.js" name="DatePicker">
<clobbers target="datePicker" />
</js-module>

<source-file src="src/android/DatePickerPlugin.java" target-dir="src/com/plugin/datepicker" />
</platform>
Expand All @@ -33,8 +37,8 @@
<clobbers target="datePicker" />
</js-module>

<header-file src="src/ios/DatePicker.h" />
<source-file src="src/ios/DatePicker.m" />
<header-file src="src/ios/DatePicker.h" />
<source-file src="src/ios/DatePicker.m" />

</platform>

Expand Down
4 changes: 2 additions & 2 deletions src/android/DatePickerPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class DatePickerPlugin extends CordovaPlugin {
private final String pluginName = "DatePickerPlugin";

@Override
public boolean execute(final String action, final JSONArray data, CallbackContext callbackContext) {
public boolean execute(final String action, final JSONArray data, final CallbackContext callbackContext) {
Log.d(pluginName, "DatePicker called with options: " + data);
boolean result = false;

Expand All @@ -52,7 +52,7 @@ public boolean execute(final String action, final JSONArray data, CallbackContex
return result;
}

public synchronized void show(final JSONArray data, CallbackContext callbackContext) {
public synchronized void show(final JSONArray data, final CallbackContext callbackContext) {
final DatePickerPlugin datePickerPlugin = this;
final Context currentCtx = cordova.getActivity();
final Calendar c = Calendar.getInstance();
Expand Down

0 comments on commit fd911d3

Please sign in to comment.