Skip to content
Snippets Groups Projects
Commit 8ff2b600 authored by Ximin Luo's avatar Ximin Luo
Browse files

support an older Android API level

parent c000a69f
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,11 @@ JNotifyListener {
triedLoad = true;
}
if (loadError != null) {
throw new IOException("JNotify not loaded", loadError);
// gymnastics due to having to support earlier Android APIs
// TODO(infinity0): add a utility that does this and convert other exceptions too
IOException e = new IOException("JNotify not loaded");
e.initCause(loadError);
throw e;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment