mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
verify that bundle saving works in DlgDelegate and fix one
disappearing message. Still need solution for callbacks passed in.
This commit is contained in:
parent
7a235ed6b6
commit
0d85a67700
1 changed files with 9 additions and 2 deletions
|
@ -45,6 +45,8 @@ public class DlgDelegate {
|
|||
public static final int DLG_DICTGONE = 6;
|
||||
public static final int DIALOG_LAST = DLG_DICTGONE;
|
||||
|
||||
public static final String MSG = "msg";
|
||||
|
||||
private int m_msgID;
|
||||
private String m_msg;
|
||||
private Runnable m_proc = null;
|
||||
|
@ -58,13 +60,18 @@ public class DlgDelegate {
|
|||
};
|
||||
private TextOrHtmlClicked m_txt_or_html;
|
||||
|
||||
public DlgDelegate( Activity activity, Bundle bundle ) {
|
||||
public DlgDelegate( Activity activity, Bundle bundle )
|
||||
{
|
||||
m_activity = activity;
|
||||
|
||||
if ( null != bundle ) {
|
||||
m_msg = bundle.getString( MSG );
|
||||
}
|
||||
}
|
||||
|
||||
public void onSaveInstanceState( Bundle outState )
|
||||
{
|
||||
// not doing anything yet
|
||||
outState.putString( MSG, m_msg );
|
||||
}
|
||||
|
||||
public Dialog onCreateDialog( int id )
|
||||
|
|
Loading…
Add table
Reference in a new issue