Commit 08c84e0c authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3729 from bitstars:AsyncServiceHelper.java-Android-5-hotfix

parents caa03f72 d2dc7f4c
...@@ -21,8 +21,9 @@ class AsyncServiceHelper ...@@ -21,8 +21,9 @@ class AsyncServiceHelper
final LoaderCallbackInterface Callback) final LoaderCallbackInterface Callback)
{ {
AsyncServiceHelper helper = new AsyncServiceHelper(Version, AppContext, Callback); AsyncServiceHelper helper = new AsyncServiceHelper(Version, AppContext, Callback);
if (AppContext.bindService(new Intent("org.opencv.engine.BIND"), Intent intent = new Intent("org.opencv.engine.BIND");
helper.mServiceConnection, Context.BIND_AUTO_CREATE)) intent.setPackage("org.opencv.engine");
if (AppContext.bindService(intent, helper.mServiceConnection, Context.BIND_AUTO_CREATE))
{ {
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment