diff options
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/TunnelController.java | 4 |
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) |