|
52 | 52 | import android.os.SystemClock; |
53 | 53 | import android.os.SystemProperties; |
54 | 54 | import android.os.Trace; |
55 | | -import android.os.UserHandle; |
56 | 55 | import android.util.AndroidRuntimeException; |
57 | 56 | import android.util.DisplayMetrics; |
58 | 57 | import android.util.Log; |
@@ -2817,10 +2816,10 @@ public void handleMessage(Message msg) { |
2817 | 2816 | case MSG_RESIZED: { |
2818 | 2817 | // Recycled in the fall through... |
2819 | 2818 | SomeArgs args = (SomeArgs) msg.obj; |
2820 | | - if (mWinFrame.equals((Rect) args.arg1) |
2821 | | - && mPendingContentInsets.equals((Rect) args.arg2) |
2822 | | - && mPendingVisibleInsets.equals((Rect) args.arg3) |
2823 | | - && ((Configuration) args.arg4 == null)) { |
| 2819 | + if (mWinFrame.equals(args.arg1) |
| 2820 | + && mPendingContentInsets.equals(args.arg2) |
| 2821 | + && mPendingVisibleInsets.equals(args.arg3) |
| 2822 | + && args.arg4 == null) { |
2824 | 2823 | break; |
2825 | 2824 | } |
2826 | 2825 | } // fall through... |
@@ -2882,8 +2881,10 @@ public void handleMessage(Message msg) { |
2882 | 2881 | mSurface != null && mSurface.isValid()) { |
2883 | 2882 | mFullRedrawNeeded = true; |
2884 | 2883 | try { |
2885 | | - mAttachInfo.mHardwareRenderer.initializeIfNeeded(mWidth, mHeight, |
2886 | | - mHolder.getSurface()); |
| 2884 | + if (mAttachInfo.mHardwareRenderer.initializeIfNeeded( |
| 2885 | + mWidth, mHeight, mHolder.getSurface())) { |
| 2886 | + mFullRedrawNeeded = true; |
| 2887 | + } |
2887 | 2888 | } catch (Surface.OutOfResourcesException e) { |
2888 | 2889 | Log.e(TAG, "OutOfResourcesException locking surface", e); |
2889 | 2890 | try { |
|
0 commit comments