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 71685c353..257b766fd 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java @@ -208,9 +208,7 @@ public class DlgDelegate { protected void showDialog( DlgID dlgID ) { int id = dlgID.ordinal(); - if ( m_activity instanceof FragActivity ) { - s_pendings.put( id, new WeakReference(m_dlgt) ); - } + s_pendings.put( id, new WeakReference(m_dlgt) ); if ( !m_activity.isFinishing() ) { m_activity.showDialog( id ); } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DualpaneDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DualpaneDelegate.java index 6f87c85cd..6a0a34a05 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DualpaneDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DualpaneDelegate.java @@ -33,4 +33,16 @@ public class DualpaneDelegate extends DelegateBase { protected void init( Bundle savedInstanceState ) { } + + @Override + protected Dialog onCreateDialog( int id ) + { + return DlgDelegate.onCreateDialog( id ); + } + + @Override + protected void prepareDialog( DlgID dlgId, Dialog dialog ) + { + DlgDelegate.onPrepareDialog( dlgId.ordinal(), dialog ); + } }