Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
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
RAHUL SHARMA
InstiApp
Commits
750af348
Commit
750af348
authored
Jul 20, 2019
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make transition seamless
parent
900c4c4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/src/main/java/app/insti/fragment/WebViewFragment.java
app/src/main/java/app/insti/fragment/WebViewFragment.java
+4
-1
No files found.
app/src/main/java/app/insti/fragment/WebViewFragment.java
View file @
750af348
...
...
@@ -63,6 +63,7 @@ public class WebViewFragment extends BaseFragment {
public
ValueCallback
<
Uri
[]>
uploadMessage
;
private
ProgressDialog
progressDialog
;
private
String
query
=
""
;
private
boolean
disableProgress
=
false
;
public
WebViewFragment
()
{
// Required empty public constructor
...
...
@@ -226,6 +227,7 @@ public class WebViewFragment extends BaseFragment {
if
(
getView
()
==
null
||
getActivity
()
==
null
)
return
;
WebView
webView
=
getView
().
findViewById
(
R
.
id
.
add_event_webview
);
disableProgress
=
true
;
code
+=
code
.
contains
(
"?"
)
?
"&"
:
"?"
;
webView
.
loadUrl
(
code
+
"sandbox=true"
);
}
...
...
@@ -403,11 +405,12 @@ public class WebViewFragment extends BaseFragment {
@Override
public
void
onProgressChanged
(
WebView
view
,
int
progress
)
{
if
(
progress
<
100
)
{
if
(
progress
<
100
&&
!
disableProgress
)
{
progressDialog
.
show
();
}
if
(
progress
==
100
)
{
progressDialog
.
dismiss
();
disableProgress
=
false
;
}
}
...
...
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