Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Flutter Inappwebview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
Flutter Inappwebview
Commits
2b600fbb
Commit
2b600fbb
authored
6 years ago
by
Lorenzo Pichilli
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #40 from Sense545/master
Fixed bug where passing null to expiresDate failed
parents
c34cdf55
595625c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/MyCookieManager.java
...pichillilorenzo/flutter_inappbrowser/MyCookieManager.java
+2
-1
lib/flutter_inappbrowser.dart
lib/flutter_inappbrowser.dart
+1
-1
No files found.
android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/MyCookieManager.java
View file @
2b600fbb
...
@@ -45,7 +45,8 @@ public class MyCookieManager implements MethodChannel.MethodCallHandler {
...
@@ -45,7 +45,8 @@ public class MyCookieManager implements MethodChannel.MethodCallHandler {
String
value
=
(
String
)
call
.
argument
(
"value"
);
String
value
=
(
String
)
call
.
argument
(
"value"
);
String
domain
=
(
String
)
call
.
argument
(
"domain"
);
String
domain
=
(
String
)
call
.
argument
(
"domain"
);
String
path
=
(
String
)
call
.
argument
(
"path"
);
String
path
=
(
String
)
call
.
argument
(
"path"
);
Long
expiresDate
=
new
Long
((
String
)
call
.
argument
(
"expiresDate"
));
String
expiresDateString
=
(
String
)
call
.
argument
(
"expiresDate"
);
Long
expiresDate
=
(
expiresDateString
!=
null
?
new
Long
(
expiresDateString
)
:
null
);
Integer
maxAge
=
(
Integer
)
call
.
argument
(
"maxAge"
);
Integer
maxAge
=
(
Integer
)
call
.
argument
(
"maxAge"
);
Boolean
isSecure
=
(
Boolean
)
call
.
argument
(
"isSecure"
);
Boolean
isSecure
=
(
Boolean
)
call
.
argument
(
"isSecure"
);
MyCookieManager
.
setCookie
(
url
,
name
,
value
,
domain
,
path
,
expiresDate
,
maxAge
,
isSecure
,
result
);
MyCookieManager
.
setCookie
(
url
,
name
,
value
,
domain
,
path
,
expiresDate
,
maxAge
,
isSecure
,
result
);
...
...
This diff is collapsed.
Click to expand it.
lib/flutter_inappbrowser.dart
View file @
2b600fbb
...
@@ -1393,7 +1393,7 @@ class CookieManager {
...
@@ -1393,7 +1393,7 @@ class CookieManager {
args
.
putIfAbsent
(
'value'
,
()
=>
value
);
args
.
putIfAbsent
(
'value'
,
()
=>
value
);
args
.
putIfAbsent
(
'domain'
,
()
=>
domain
);
args
.
putIfAbsent
(
'domain'
,
()
=>
domain
);
args
.
putIfAbsent
(
'path'
,
()
=>
path
);
args
.
putIfAbsent
(
'path'
,
()
=>
path
);
args
.
putIfAbsent
(
'expiresDate'
,
()
=>
expiresDate
.
toString
());
args
.
putIfAbsent
(
'expiresDate'
,
()
=>
expiresDate
?
.
toString
());
args
.
putIfAbsent
(
'maxAge'
,
()
=>
maxAge
);
args
.
putIfAbsent
(
'maxAge'
,
()
=>
maxAge
);
args
.
putIfAbsent
(
'isSecure'
,
()
=>
isSecure
);
args
.
putIfAbsent
(
'isSecure'
,
()
=>
isSecure
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment