support an older Android API level

This commit is contained in:
Ximin Luo
2014-01-29 20:36:49 +00:00
parent c000a69f5b
commit 8ff2b60000

View File

@@ -39,7 +39,11 @@ JNotifyListener {
triedLoad = true; triedLoad = true;
} }
if (loadError != null) { 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;
} }
} }