renamed splashScreen method
This commit is contained in:
parent
456aecadb4
commit
38446594db
@ -566,8 +566,8 @@ function boot() {
|
|||||||
window.iitcLoaded = true;
|
window.iitcLoaded = true;
|
||||||
window.runHooks('iitcLoaded');
|
window.runHooks('iitcLoaded');
|
||||||
|
|
||||||
if (typeof android !== 'undefined' && android && android.removeSplashScreen) {
|
if (typeof android !== 'undefined' && android && android.bootFinished) {
|
||||||
android.removeSplashScreen();
|
android.bootFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -104,8 +104,8 @@ public class IITC_JSInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
public void removeSplashScreen() {
|
public void bootFinished() {
|
||||||
Log.d("iitcm", "removing splash screen");
|
Log.d("iitcm", "...boot finished");
|
||||||
|
|
||||||
mIitc.runOnUiThread(new Runnable() {
|
mIitc.runOnUiThread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -76,7 +76,7 @@ public class IITC_WebView extends WebView {
|
|||||||
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
|
public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
|
||||||
if (consoleMessage.messageLevel() == ConsoleMessage.MessageLevel.ERROR) {
|
if (consoleMessage.messageLevel() == ConsoleMessage.MessageLevel.ERROR) {
|
||||||
Log.d("iitcm", consoleMessage.message());
|
Log.d("iitcm", consoleMessage.message());
|
||||||
mJsInterface.removeSplashScreen();
|
((IITC_Mobile) getContext()).setLoadingState(false);
|
||||||
}
|
}
|
||||||
return super.onConsoleMessage(consoleMessage);
|
return super.onConsoleMessage(consoleMessage);
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ public class CheckHttpResponse extends AsyncTask<String, Void, Boolean> {
|
|||||||
int code = response.getStatusLine().getStatusCode();
|
int code = response.getStatusLine().getStatusCode();
|
||||||
if (code != HttpStatus.SC_OK) {
|
if (code != HttpStatus.SC_OK) {
|
||||||
Log.d("iitcm", "received error code: " + code);
|
Log.d("iitcm", "received error code: " + code);
|
||||||
mJsInterface.removeSplashScreen();
|
((IITC_Mobile) mContext).setLoadingState(false);
|
||||||
// TODO: remove when google login issue is fixed
|
// TODO: remove when google login issue is fixed
|
||||||
if (urls[0].contains("uberauth=WILL_NOT_SIGN_IN")) {
|
if (urls[0].contains("uberauth=WILL_NOT_SIGN_IN")) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user