From 8ff2b60000f87451de42bd76fec7486be94f5cae Mon Sep 17 00:00:00 2001 From: Ximin Luo <infinity0@pwned.gg> Date: Wed, 29 Jan 2014 20:36:49 +0000 Subject: [PATCH] support an older Android API level --- .../plugins/file/UnixRemovableDriveMonitor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/briar-desktop/src/org/briarproject/plugins/file/UnixRemovableDriveMonitor.java b/briar-desktop/src/org/briarproject/plugins/file/UnixRemovableDriveMonitor.java index 5a57b316d0..17116e05e5 100644 --- a/briar-desktop/src/org/briarproject/plugins/file/UnixRemovableDriveMonitor.java +++ b/briar-desktop/src/org/briarproject/plugins/file/UnixRemovableDriveMonitor.java @@ -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; } } -- GitLab