Use bindServiceAsUser() to follow API change.

Change-Id: Ib12f1dcf7f3a5df7e166b732e1c29e7e9d0869ed
This commit is contained in:
Amith Yamasani
2013-01-16 12:34:16 -08:00
parent 4b5728bbfb
commit 3f9c9b6eae

View File

@@ -338,8 +338,8 @@ public class StorageMeasurement {
sendMessage(obtainMessage(MSG_CONNECTED, mDefaultContainer)); sendMessage(obtainMessage(MSG_CONNECTED, mDefaultContainer));
} else { } else {
Intent service = new Intent().setComponent(DEFAULT_CONTAINER_COMPONENT); Intent service = new Intent().setComponent(DEFAULT_CONTAINER_COMPONENT);
context.bindService(service, mDefContainerConn, Context.BIND_AUTO_CREATE, context.bindServiceAsUser(service, mDefContainerConn, Context.BIND_AUTO_CREATE,
UserHandle.USER_OWNER); UserHandle.OWNER);
} }
} }
break; break;