Merge "DO NOT MERGE" into gingerbread

This commit is contained in:
Shimeng (Simon) Wang
2010-10-15 14:07:29 -07:00
committed by Android (Google) Code Review

View File

@@ -71,6 +71,7 @@ class BrowserFrame extends Handler {
// that if the UI thread posts any messages after the message
// queue has been cleared,they are ignored.
private boolean mBlockMessages = false;
private int mOrientation = -1;
// Is this frame the main frame?
private boolean mIsMainFrame;
@@ -473,7 +474,10 @@ class BrowserFrame extends Handler {
}
case ORIENTATION_CHANGED: {
nativeOrientationChanged(msg.arg1);
if (mOrientation != msg.arg1) {
mOrientation = msg.arg1;
nativeOrientationChanged(msg.arg1);
}
break;
}