소스 검색

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)


불러오는 중...
취소
저장