Merge "Prevent notifyScreenshotError() from calling twice" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
221330f9f9
@@ -5534,7 +5534,14 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
|
||||
@Override
|
||||
public void onServiceDisconnected(ComponentName name) {
|
||||
notifyScreenshotError();
|
||||
synchronized (mScreenshotLock) {
|
||||
if (mScreenshotConnection != null) {
|
||||
mContext.unbindService(mScreenshotConnection);
|
||||
mScreenshotConnection = null;
|
||||
mHandler.removeCallbacks(mScreenshotTimeout);
|
||||
notifyScreenshotError();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (mContext.bindServiceAsUser(serviceIntent, conn,
|
||||
@@ -7771,7 +7778,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
int delta = newRotation - oldRotation;
|
||||
if (delta < 0) delta += 4;
|
||||
// Likewise we don't rotate seamlessly for 180 degree rotations
|
||||
// in this case the surfaces never resize, and our logic to
|
||||
// in this case the surfaces never resize, and our logic to
|
||||
// revert the transformations on size change will fail. We could
|
||||
// fix this in the future with the "tagged" frames idea.
|
||||
if (delta == Surface.ROTATION_180) {
|
||||
|
||||
Reference in New Issue
Block a user