Merge "Wait for camera extensions service during initialization" into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2f68a663a9
@@ -263,12 +263,12 @@ public final class CameraExtensionCharacteristics {
|
|||||||
@Override
|
@Override
|
||||||
public void onServiceConnected(ComponentName component, IBinder binder) {
|
public void onServiceConnected(ComponentName component, IBinder binder) {
|
||||||
mProxy = ICameraExtensionsProxyService.Stub.asInterface(binder);
|
mProxy = ICameraExtensionsProxyService.Stub.asInterface(binder);
|
||||||
mInitFuture.setStatus(true);
|
|
||||||
try {
|
try {
|
||||||
mSupportsAdvancedExtensions = mProxy.advancedExtensionsSupported();
|
mSupportsAdvancedExtensions = mProxy.advancedExtensionsSupported();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "Remote IPC failed!");
|
Log.e(TAG, "Remote IPC failed!");
|
||||||
}
|
}
|
||||||
|
mInitFuture.setStatus(true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ctx.bindService(intent, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT |
|
ctx.bindService(intent, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT |
|
||||||
|
|||||||
Reference in New Issue
Block a user