From 74c13fa2cf4b43731df2276ed2fd0bf8ad5c701a Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 3 Jun 2015 06:16:01 -0700 Subject: [PATCH] fix (I hope) crash: don't show alert on activity that's finishing --- .../XWords4/src/org/eehouse/android/xw4/DlgDelegate.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java index 1c74f0644..698341e4c 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java @@ -193,8 +193,10 @@ public class DlgDelegate { protected void showDialog( DlgID dlgID ) { - int id = dlgID.ordinal(); - m_activity.showDialog( id ); + if ( !m_activity.isFinishing() ) { + int id = dlgID.ordinal(); + m_activity.showDialog( id ); + } } public Dialog createDialog( int id )