Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
aebfccf0
Commit
aebfccf0
authored
Nov 01, 2019
by
Pavitra Golchha
Committed by
Susan Rati Lane
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused context constructor param (#1890)
parent
5cec022a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
appinventor/components/src/com/google/appinventor/components/runtime/WebViewer.java
.../com/google/appinventor/components/runtime/WebViewer.java
+3
-5
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/WebViewer.java
View file @
aebfccf0
...
...
@@ -104,7 +104,7 @@ public final class WebViewer extends AndroidViewComponent {
webview
.
getSettings
().
setJavaScriptEnabled
(
true
);
webview
.
setFocusable
(
true
);
// adds a way to send strings to the javascript
wvInterface
=
new
WebViewInterface
(
webview
.
getContext
()
);
wvInterface
=
new
WebViewInterface
();
webview
.
addJavascriptInterface
(
wvInterface
,
"AppInventor"
);
// enable pinch zooming and zoom controls
webview
.
getSettings
().
setBuiltInZoomControls
(
true
);
...
...
@@ -472,12 +472,10 @@ public final class WebViewer extends AndroidViewComponent {
* in the WebView
*/
public
class
WebViewInterface
{
Context
mContext
;
String
webViewString
;
/** Instantiate the interface and set the context */
WebViewInterface
(
Context
c
)
{
mContext
=
c
;
/** Instantiate the interface */
WebViewInterface
()
{
webViewString
=
" "
;
}
...
...
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