renamed splashScreen method

This commit is contained in:
Philipp Schaefer 2013-09-24 01:05:26 +02:00
parent 456aecadb4
commit 38446594db
4 changed files with 6 additions and 6 deletions

View File

@ -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();
}
}

View File

@ -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

View File

@ -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);
}

View File

@ -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;