From 111b2d89221722d38f5b5b3ba65904ec22421839 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 16 Aug 2012 20:52:17 -0700 Subject: [PATCH] binder interfaces can't be compared directly we always need to compare their binder Change-Id: I70d554ebc5009fe81e87923235f91451f32e1a30 --- services/surfaceflinger/SurfaceFlinger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 9178dfcaf..06d9d4057 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -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