From 766a8140195e06f70ddc436a0420cadfcb15c36e Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 5 Jun 2015 22:03:59 -0700 Subject: [PATCH] make dismissDialog() catch and ignore exception raised when the dailog wasn't up. --- .../XWords4/src/org/eehouse/android/xw4/DelegateBase.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java index 5a5360cc8..06c4f9eaa 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java @@ -317,7 +317,11 @@ public class DelegateBase implements DlgClickNotify, protected void dismissDialog( DlgID dlgID ) { - m_activity.dismissDialog( dlgID.ordinal() ); + try { + m_activity.dismissDialog( dlgID.ordinal() ); + } catch ( Exception ex ) { + // DbgUtils.loge( ex ); + } } protected void removeDialog( int id )