Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 646ae689 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix IllegalArgumentException" into main

parents 03fb0a8c e4b08837
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -176,7 +176,13 @@ public class ConfirmDialogFragment extends BaseDialogFragment
    }

    private void informCaller(boolean confirmed, int itemPosition) {
        OnConfirmListener listener = getListener(OnConfirmListener.class);
        OnConfirmListener listener;
        try {
            listener = getListener(OnConfirmListener.class);
        } catch (IllegalArgumentException e) {
            Log.e(TAG, "Do nothing and return.", e);
            return;
        }
        if (listener == null) {
            return;
        }