TunnelController: Use helper function to unwrap the Throwable
Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
parent
7b9c1a536c
commit
30901a6152
@ -47,8 +47,8 @@ public final class TunnelController {
|
|||||||
if (throwable == null)
|
if (throwable == null)
|
||||||
return;
|
return;
|
||||||
final Context context = view.getContext();
|
final Context context = view.getContext();
|
||||||
if (throwable instanceof WgQuickBackend.ModuleNotLoadedException ||
|
if (ExceptionLoggers.unwrap(throwable)
|
||||||
throwable.getCause() instanceof WgQuickBackend.ModuleNotLoadedException) {
|
instanceof WgQuickBackend.ModuleNotLoadedException) {
|
||||||
final String message = context.getString(R.string.not_supported_message);
|
final String message = context.getString(R.string.not_supported_message);
|
||||||
final String title = context.getString(R.string.not_supported_title);
|
final String title = context.getString(R.string.not_supported_title);
|
||||||
final AlertDialog dialog = new AlertDialog.Builder(context)
|
final AlertDialog dialog = new AlertDialog.Builder(context)
|
||||||
|
Loading…
Reference in New Issue
Block a user