binder interfaces can't be compared directly

we always need to compare their binder

Change-Id: I70d554ebc5009fe81e87923235f91451f32e1a30
This commit is contained in:
Mathias Agopian 2012-08-16 20:52:17 -07:00
parent c21fc05af7
commit 111b2d8922
1 changed files with 1 additions and 1 deletions

View File

@ -934,7 +934,7 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
} else {
// this display is in both lists. see if something changed.
const DisplayDeviceState& state(curr[j]);
if (state.surface != draw[i].surface) {
if (state.surface->asBinder() != draw[i].surface->asBinder()) {
// changing the surface is like destroying and
// recreating the DisplayDevice