summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-10 00:03:45 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-10 00:03:45 -0600
commit30901a6152614d7aa1fa89d56372f7b362b74b25 (patch)
tree5fb91c41d64afa4281a274c0934ffb679cb92dd6 /app
parent7b9c1a536ceb1527edda8be90cefc1f830dbbf81 (diff)
TunnelController: Use helper function to unwrap the Throwable
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/wireguard/android/fragment/TunnelController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelController.java b/app/src/main/java/com/wireguard/android/fragment/TunnelController.java
index 8b86749d..ca40654e 100644
--- a/app/src/main/java/com/wireguard/android/fragment/TunnelController.java
+++ b/app/src/main/java/com/wireguard/android/fragment/TunnelController.java
@@ -47,8 +47,8 @@ public final class TunnelController {
if (throwable == null)
return;
final Context context = view.getContext();
- if (throwable instanceof WgQuickBackend.ModuleNotLoadedException ||
- throwable.getCause() instanceof WgQuickBackend.ModuleNotLoadedException) {
+ if (ExceptionLoggers.unwrap(throwable)
+ instanceof WgQuickBackend.ModuleNotLoadedException) {
final String message = context.getString(R.string.not_supported_message);
final String title = context.getString(R.string.not_supported_title);
final AlertDialog dialog = new AlertDialog.Builder(context)