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