mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
override onResume not onStart to fix NPE
When game's resumed (brought from background) and Wait alert is up onStart() is called before getDialog() has a non-null value to return. onResume() is the place to modify the dialog.
This commit is contained in:
parent
58e5145296
commit
e7a2657a91
1 changed files with 2 additions and 2 deletions
|
@ -47,9 +47,9 @@ class XWDialogFragment extends DialogFragment {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onStart()
|
||||
public void onResume()
|
||||
{
|
||||
super.onStart();
|
||||
super.onResume();
|
||||
|
||||
if ( null != m_buttonMap ) {
|
||||
AlertDialog dialog = (AlertDialog)getDialog();
|
||||
|
|
Loading…
Reference in a new issue