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:
Eric House 2015-06-26 06:13:11 -07:00
parent d096b8e8a2
commit e60a16be1e

View file

@ -34,12 +34,6 @@ public class PrefsActivity extends PreferenceActivity
private PrefsDelegate m_dlgt;
@Override
protected Dialog onCreateDialog( int id )
{
return m_dlgt.onCreateDialog( id );
}
@Override
protected void onCreate( Bundle savedInstanceState )
{
@ -89,6 +83,19 @@ public class PrefsActivity extends PreferenceActivity
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 )
{
m_dlgt.showOKOnlyDialog( msgID );