mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
add onPrepareDialog, without which we crash turning on SMS from
prefs. Note: I've committed this before and somehow lost it, so there may be some git anomolies here.
This commit is contained in:
parent
d096b8e8a2
commit
e60a16be1e
1 changed files with 13 additions and 6 deletions
|
@ -34,12 +34,6 @@ public class PrefsActivity extends PreferenceActivity
|
||||||
|
|
||||||
private PrefsDelegate m_dlgt;
|
private PrefsDelegate m_dlgt;
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Dialog onCreateDialog( int id )
|
|
||||||
{
|
|
||||||
return m_dlgt.onCreateDialog( id );
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate( Bundle savedInstanceState )
|
protected void onCreate( Bundle savedInstanceState )
|
||||||
{
|
{
|
||||||
|
@ -89,6 +83,19 @@ public class PrefsActivity extends PreferenceActivity
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Dialog onCreateDialog( int id )
|
||||||
|
{
|
||||||
|
return m_dlgt.onCreateDialog( id );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onPrepareDialog( int id, Dialog dialog )
|
||||||
|
{
|
||||||
|
super.onPrepareDialog( id, dialog );
|
||||||
|
m_dlgt.prepareDialog( DlgID.values()[id], dialog );
|
||||||
|
}
|
||||||
|
|
||||||
public void showOKOnlyDialog( int msgID )
|
public void showOKOnlyDialog( int msgID )
|
||||||
{
|
{
|
||||||
m_dlgt.showOKOnlyDialog( msgID );
|
m_dlgt.showOKOnlyDialog( msgID );
|
||||||
|
|
Loading…
Reference in a new issue