This commit is contained in:
gnhaku
2020-08-11 17:11:51 +03:00
parent fa4f8c7788
commit 5ee0ed7a0f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ public class Assets extends CordovaPlugin {
return field.getInt(null);
}
protected boolean matchDoubleInSting(String str) {
protected boolean matchDoubleInString(String str) {
return (Pattern.matches("([0-9]*)\\.([0-9]*)", str));
}
}
+1 -1
View File
@@ -250,7 +250,7 @@ public class startApp extends Assets {
LaunchIntent.putExtra(parseExtraName(key), extra.getInt(key));
}
if(params.has("matchDoubleInSting") && matchDoubleInSting(extra.getString(key))) {
if(params.has("matchDoubleInString") && matchDoubleInString(extra.getString(key))) {
LaunchIntent.putExtra(parseExtraName(key), extra.getDouble(key));
} else if(value instanceof String) {
LaunchIntent.putExtra(parseExtraName(key), extra.getString(key));