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
48b5aaf1
Commit
48b5aaf1
authored
Nov 18, 2019
by
Lorenzo Pichilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed injectDeferredObject java method on android
parent
651cb656
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
27 deletions
+15
-27
.idea/workspace.xml
.idea/workspace.xml
+14
-27
android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java
...renzo/flutter_inappbrowser/InAppWebView/InAppWebView.java
+1
-0
No files found.
.idea/workspace.xml
View file @
48b5aaf1
...
@@ -15,20 +15,7 @@
...
@@ -15,20 +15,7 @@
</component>
</component>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9b41f7a2-a71e-4923-91fb-249d7815b3e7"
name=
"Default"
comment=
""
>
<list
default=
"true"
id=
"9b41f7a2-a71e-4923-91fb-249d7815b3e7"
name=
"Default"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/example/lib/chrome_safari_browser_example.screen.dart"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/lib/in_app_browser_example.screen.dart"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/example/lib/in_app_webiew_example.screen.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/CHANGELOG.md"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/CHANGELOG.md"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewOptions.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewOptions.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/chrome_safari_example.screen.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/inline_example.screen.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/main.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/lib/main.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/webview_example.screen.dart"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/InAppWebView.swift"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/InAppWebView.swift"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/InAppWebViewOptions.swift"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/InAppWebViewOptions.swift"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/webview_options.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/webview_options.dart"
afterDir=
"false"
/>
</list>
</list>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
...
@@ -69,11 +56,11 @@
...
@@ -69,11 +56,11 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/in_app_webiew_example.screen.dart"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/in_app_webiew_example.screen.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
2
53"
>
<state
relative-caret-position=
"
3
53"
>
<caret
line=
"1
30"
column=
"52"
selection-start-line=
"130"
selection-start-column=
"52"
selection-end-line=
"130"
selection-end-column=
"52
"
/>
<caret
line=
"1
86"
column=
"25"
selection-start-line=
"186"
selection-start-column=
"25"
selection-end-line=
"186"
selection-end-column=
"25
"
/>
<folding>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -81,7 +68,7 @@
...
@@ -81,7 +68,7 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/webview_options.dart"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/webview_options.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"290"
>
<state
relative-caret-position=
"290"
>
...
@@ -518,7 +505,7 @@
...
@@ -518,7 +505,7 @@
<window_info
id=
"Resources Explorer"
order=
"8"
/>
<window_info
id=
"Resources Explorer"
order=
"8"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.32642487"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.32642487"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Run"
order=
"2"
sideWeight=
"0.49574015"
visible=
"true
"
weight=
"0.4746114"
/>
<window_info
a
nchor=
"bottom"
id=
"Run"
order=
"2"
sideWeight=
"0.49574015
"
weight=
"0.4746114"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.34196892"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.34196892"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
...
@@ -526,7 +513,7 @@
...
@@ -526,7 +513,7 @@
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"8"
sideWeight=
"0.5063898"
side_tool=
"true"
weight=
"0.3388601"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"8"
sideWeight=
"0.5063898"
side_tool=
"true"
weight=
"0.3388601"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"9"
weight=
"0.32953367"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"9"
weight=
"0.32953367"
/>
<window_info
a
nchor=
"bottom"
id=
"Terminal"
order=
"10"
sideWeight=
"0.49361023
"
weight=
"0.3388601"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"10"
sideWeight=
"0.49361023"
visible=
"true
"
weight=
"0.3388601"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"11"
weight=
"0.3896373"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"11"
weight=
"0.3896373"
/>
<window_info
anchor=
"bottom"
id=
"Dependency Viewer"
order=
"12"
weight=
"0.32800853"
/>
<window_info
anchor=
"bottom"
id=
"Dependency Viewer"
order=
"12"
weight=
"0.32800853"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"13"
weight=
"0.32953367"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"13"
weight=
"0.32953367"
/>
...
@@ -861,22 +848,22 @@
...
@@ -861,22 +848,22 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
lib/src/webview_options
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/
example/lib/in_app_webiew_example.screen
.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
290
"
>
<state
relative-caret-position=
"
353
"
>
<caret
line=
"1
06"
column=
"30"
selection-start-line=
"106"
selection-start-column=
"7"
selection-end-line=
"106"
selection-end-column=
"30
"
/>
<caret
line=
"1
86"
column=
"25"
selection-start-line=
"186"
selection-start-column=
"25"
selection-end-line=
"186"
selection-end-column=
"25
"
/>
<folding>
<folding>
<element
signature=
"e#0#
17
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
20
#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
example/lib/in_app_webiew_example.screen
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/
lib/src/webview_options
.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
53
"
>
<state
relative-caret-position=
"2
90
"
>
<caret
line=
"1
30"
column=
"52"
selection-start-line=
"130"
selection-start-column=
"52"
selection-end-line=
"130"
selection-end-column=
"52
"
/>
<caret
line=
"1
06"
column=
"30"
selection-start-line=
"106"
selection-start-column=
"7"
selection-end-line=
"106"
selection-end-column=
"30
"
/>
<folding>
<folding>
<element
signature=
"e#0#
20
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
17
#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
...
android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java
View file @
48b5aaf1
...
@@ -1167,6 +1167,7 @@ final public class InAppWebView extends InputAwareWebView {
...
@@ -1167,6 +1167,7 @@ final public class InAppWebView extends InputAwareWebView {
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
KITKAT
)
{
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
KITKAT
)
{
// This action will have the side-effect of blurring the currently focused element
// This action will have the side-effect of blurring the currently focused element
loadUrl
(
"javascript:"
+
finalScriptToInject
);
loadUrl
(
"javascript:"
+
finalScriptToInject
);
result
.
success
(
""
);
}
else
{
}
else
{
evaluateJavascript
(
finalScriptToInject
,
new
ValueCallback
<
String
>()
{
evaluateJavascript
(
finalScriptToInject
,
new
ValueCallback
<
String
>()
{
@Override
@Override
...
...
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