Fix issue #28051399: API demos crashing on Remote service binding options

Details, details.

Change-Id: I43687a1a593b2c7bd176b33d4c9c9169be723d72
This commit is contained in:
Dianne Hackborn
2016-05-05 18:00:07 -07:00
parent 645fa2c1cb
commit da2cd13037

View File

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