cleanup old dialog code

remove some old stuff from pre-dialogfragment dialog handling. What's
left still needs auditing, as I'm not sure whether it can get called.
This commit is contained in:
Eric House 2017-04-07 00:33:45 -07:00
parent 50fe363da9
commit d9944252f6
2 changed files with 2 additions and 42 deletions

View file

@ -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 );

View file

@ -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 )
{