Move hiding last screen from onTouch to when the document finishes loading. This will change after the layer manager lands

This commit is contained in:
Doug Turner 2011-10-13 19:38:04 -07:00
Родитель b3f319b33c
Коммит d22ede8571
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1635,6 +1635,7 @@ public class GeckoAppShell
getMainHandler().post(new Runnable() {
public void run() {
GeckoApp.mProgressBar.setVisibility(View.GONE);
GeckoApp.surfaceView.hideStartupBitmap();
}
});
}

Просмотреть файл

@ -112,6 +112,11 @@ class GeckoSurfaceView
return file.toString();
}
public void hideStartupBitmap() {
mShowingLoadScreen = false;
surfaceChanged(getHolder(), mFormat, mWidth, mHeight);
}
public void loadStartupBitmap() {
new Thread(new Runnable() {
public void run() {
@ -608,12 +613,6 @@ class GeckoSurfaceView
// event stuff
public boolean onTouchEvent(MotionEvent event) {
this.requestFocus(FOCUS_UP, null);
if (mShowingLoadScreen == true) {
mShowingLoadScreen = false;
surfaceChanged(getHolder(), mFormat, mWidth, mHeight);
}
GeckoAppShell.sendEventToGecko(new GeckoEvent(event));
return true;
}