diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DelegateBase.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DelegateBase.java index b600bce7d..a2d18ab8a 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DelegateBase.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DelegateBase.java @@ -104,6 +104,8 @@ public class DelegateBase implements DlgClickNotify, protected void onWindowFocusChanged( boolean hasFocus ) {} protected boolean handleBackPressed() { return false; } public void orientationChanged() {} + protected Dialog onCreateDialog( int id ) { return null; } + protected void prepareDialog( DlgID dlgId, Dialog dialog ) {} protected void requestWindowFeature( int feature ) {} @@ -496,16 +498,6 @@ public class DelegateBase implements DlgClickNotify, m_activity.removeDialog( id ); } - protected Dialog onCreateDialog( int id ) - { - return m_dlgDelegate.createDialog( id ); - } - - protected void prepareDialog( DlgID dlgId, Dialog dialog ) - { - m_dlgDelegate.prepareDialog( dlgId, dialog ); - } - protected AlertDialog.Builder makeAlertBuilder() { return LocUtils.makeAlertBuilder( m_activity ); diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java index eaffec05e..b070909ba 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java @@ -368,38 +368,6 @@ public class DlgDelegate { } } - public Dialog createDialog( int id ) - { - Dialog dialog = null; - DlgID dlgID = DlgID.values()[id]; - DlgState state = findForID( dlgID ); - switch( dlgID ) { - case LOOKUP: - case DIALOG_OKONLY: - case DIALOG_NOTAGAIN: - case CONFIRM_THEN: - case INVITE_CHOICES_THEN: - case DIALOG_ENABLESMS: - Assert.assertFalse( BuildConfig.DEBUG ); - break; - default: - Log.d( TAG, "not creating %s", dlgID.toString() ); - break; - } - return dialog; - } - - public void prepareDialog( DlgID dlgId, Dialog dialog ) - { - switch( dlgId ) { - case INVITE_CHOICES_THEN: - case DIALOG_ENABLESMS: - Assert.assertFalse( BuildConfig.DEBUG ); - // prepareInviteChoicesDialog( dialog ); - break; - } - } - private void showOKOnlyDialogThen( String msg, Action action, Object[] params, int titleId ) {