Merge "Fix issue #28051399: API demos crashing on Remote service binding options" into nyc-dev

am: 14e56c1aa6

* commit '14e56c1aa6ca7555ccd996a73845a0b41abc791d':
  Fix issue #28051399: API demos crashing on Remote service binding options

Change-Id: I99cca87200b9214d95d8d05965e776201a2da271
This commit is contained in:
Dianne Hackborn
2016-05-06 17:20:31 +00:00
committed by android-build-merger

View File

@@ -587,7 +587,7 @@ public class RemoteService extends Service {
mCurConnection = null; mCurConnection = null;
} }
ServiceConnection conn = new MyServiceConnection(); ServiceConnection conn = new MyServiceConnection();
if (bindService(new Intent(IRemoteService.class.getName()), if (bindService(mBindIntent,
conn, Context.BIND_AUTO_CREATE | Context.BIND_ABOVE_CLIENT)) { conn, Context.BIND_AUTO_CREATE | Context.BIND_ABOVE_CLIENT)) {
mCurConnection = conn; mCurConnection = conn;
} }