Skip to content
Snippets Groups Projects
Commit 5ea379ed authored by Xavier Gibert's avatar Xavier Gibert
Browse files

2 progress bars interface JS

parent f6f35f4c
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,19 @@ public final class WebAppInterface {
});
}
/** Set loading progress (0-100) from the web page */
@JavascriptInterface
public void setProgressOrbit(final int progress) {
if(progress==100)
((MainActivity)activity).getSimulator().setBrowserLoaded(true);
activity.runOnUiThread( new Runnable() {
public void run() {
((MainActivity)activity).setBrowserProgressValueOrbit(progress * 100);
//activity.setProgress(progress * 100);
}
});
}
/** Update the stats of the web page */
@JavascriptInterface
public void updateFPS(final String stats) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment