зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b3f319b33c
Коммит
d22ede8571
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче