ソースを参照

TunnelController: Use helper function to unwrap the Throwable

Signed-off-by: Samuel Holland <samuel@sholland.org>
master
Samuel Holland 6年前
コミット
30901a6152
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      app/src/main/java/com/wireguard/android/fragment/TunnelController.java

+ 2
- 2
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)


読み込み中…
キャンセル
保存