Bug 1346542 - [3.0] Change setState to checkAndSetState to avoid updated state override. r=me

This commit is contained in:
Eugen Sawin 2017-03-31 19:26:55 +02:00
Родитель 1719c11783
Коммит fd51be56ce
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -74,7 +74,8 @@ public final class EventDispatcher extends JNIObject {
/* package */ void setStateHolder(final NativeQueue.StateHolder stateHolder) {
mStateHolder = stateHolder;
// Force queue flushing.
mStateHolder.setState(mStateHolder.getState());
final NativeQueue.State state = mStateHolder.getState();
mStateHolder.checkAndSetState(state, state);
}
private boolean isReadyForDispatchingToGecko() {