Merge "Fix IllegalArgumentException" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
646ae689fe
@@ -176,7 +176,13 @@ public class ConfirmDialogFragment extends BaseDialogFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void informCaller(boolean confirmed, int itemPosition) {
|
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) {
|
if (listener == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user