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

This commit is contained in:
Dianne Hackborn
2016-05-06 17:08:07 +00:00
committed by Android (Google) Code Review

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;
} }