mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
rename onCreateDialog createDialog where it's not an overridden method
This commit is contained in:
parent
cae30c61e8
commit
e0c0ff219f
6 changed files with 11 additions and 11 deletions
|
@ -36,9 +36,9 @@ public class DelegateBase implements DlgDelegate.DlgClickNotify {
|
||||||
m_delegate = new DlgDelegate( activity, this, bundle );
|
m_delegate = new DlgDelegate( activity, this, bundle );
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Dialog onCreateDialog( int id )
|
protected Dialog createDialog( int id )
|
||||||
{
|
{
|
||||||
return m_delegate.onCreateDialog( id );
|
return m_delegate.createDialog( id );
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void showNotAgainDlgThen( int msgID, int prefsKey,
|
protected void showNotAgainDlgThen( int msgID, int prefsKey,
|
||||||
|
|
|
@ -241,8 +241,7 @@ public class DictsDelegate extends DelegateBase
|
||||||
protected Dialog createDialog( int id )
|
protected Dialog createDialog( int id )
|
||||||
{
|
{
|
||||||
OnClickListener lstnr, lstnr2;
|
OnClickListener lstnr, lstnr2;
|
||||||
Dialog dialog = null;
|
Dialog dialog;
|
||||||
String format;
|
|
||||||
String message;
|
String message;
|
||||||
boolean doRemove = true;
|
boolean doRemove = true;
|
||||||
|
|
||||||
|
@ -251,7 +250,7 @@ public class DictsDelegate extends DelegateBase
|
||||||
case MOVE_DICT:
|
case MOVE_DICT:
|
||||||
final XWListItem[] selItems = getSelItems();
|
final XWListItem[] selItems = getSelItems();
|
||||||
final int[] moveTo = { -1 };
|
final int[] moveTo = { -1 };
|
||||||
message = Utils.format( m_activity, R.string.move_dictf,
|
message = m_activity.getString( R.string.move_dictf,
|
||||||
getJoinedNames( selItems ) );
|
getJoinedNames( selItems ) );
|
||||||
|
|
||||||
OnClickListener newSelLstnr =
|
OnClickListener newSelLstnr =
|
||||||
|
@ -347,6 +346,7 @@ public class DictsDelegate extends DelegateBase
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
dialog = super.createDialog( id );
|
||||||
doRemove = false;
|
doRemove = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,9 +155,9 @@ public class DlgDelegate {
|
||||||
outState.putIntArray( IDS, ids );
|
outState.putIntArray( IDS, ids );
|
||||||
}
|
}
|
||||||
|
|
||||||
public Dialog onCreateDialog( int id )
|
public Dialog createDialog( int id )
|
||||||
{
|
{
|
||||||
// DbgUtils.logf("onCreateDialog(id=%d)", id );
|
// DbgUtils.logf("createDialog(id=%d)", id );
|
||||||
Dialog dialog = null;
|
Dialog dialog = null;
|
||||||
DlgID dlgID = DlgID.values()[id];
|
DlgID dlgID = DlgID.values()[id];
|
||||||
DlgState state = findForID( dlgID );
|
DlgState state = findForID( dlgID );
|
||||||
|
|
|
@ -334,7 +334,7 @@ public class GamesListDelegate extends DelegateBase
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
dialog = super.onCreateDialog( id );
|
dialog = super.createDialog( id );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return dialog;
|
return dialog;
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class XWActivity extends Activity
|
||||||
Dialog dialog = super.onCreateDialog( id );
|
Dialog dialog = super.onCreateDialog( id );
|
||||||
if ( null == dialog ) {
|
if ( null == dialog ) {
|
||||||
DbgUtils.logf( "%s.onCreateDialog() called", getClass().getName() );
|
DbgUtils.logf( "%s.onCreateDialog() called", getClass().getName() );
|
||||||
dialog = m_delegate.onCreateDialog( id );
|
dialog = m_delegate.createDialog( id );
|
||||||
}
|
}
|
||||||
return dialog;
|
return dialog;
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ public class XWListActivity extends ListActivity
|
||||||
protected Dialog onCreateDialog( final int id )
|
protected Dialog onCreateDialog( final int id )
|
||||||
{
|
{
|
||||||
DbgUtils.logf( "%s.onCreateDialog() called", getClass().getName() );
|
DbgUtils.logf( "%s.onCreateDialog() called", getClass().getName() );
|
||||||
Dialog dialog = m_delegate.onCreateDialog( id );
|
Dialog dialog = m_delegate.createDialog( id );
|
||||||
if ( null == dialog ) {
|
if ( null == dialog ) {
|
||||||
dialog = super.onCreateDialog( id );
|
dialog = super.onCreateDialog( id );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue