mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
don't show both on-first-launch alerts at the same time
This commit is contained in:
parent
0df1e696f8
commit
f48ed0cd9c
1 changed files with 10 additions and 5 deletions
|
@ -807,6 +807,8 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
getDefaultPlayerName( m_activity, 0, true );
|
||||
}
|
||||
CommonPrefs.setDefaultPlayerName( m_activity, name );
|
||||
|
||||
getDictForLangIf(); // hack!!!
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
@ -910,9 +912,9 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
|
||||
tryStartsFromIntent( getIntent() );
|
||||
|
||||
askDefaultNameIf();
|
||||
|
||||
if ( !askDefaultNameIf() ) {
|
||||
getDictForLangIf();
|
||||
}
|
||||
|
||||
m_origTitle = getTitle();
|
||||
} // init
|
||||
|
@ -1885,13 +1887,16 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
}
|
||||
}
|
||||
|
||||
private void askDefaultNameIf()
|
||||
private boolean askDefaultNameIf()
|
||||
{
|
||||
if ( null == CommonPrefs.getDefaultPlayerName( m_activity, 0, false ) ) {
|
||||
boolean showing =
|
||||
null == CommonPrefs.getDefaultPlayerName( m_activity, 0, false );
|
||||
if ( showing ) {
|
||||
String name = CommonPrefs.getDefaultPlayerName( m_activity, 0, true );
|
||||
CommonPrefs.setDefaultPlayerName( m_activity, name );
|
||||
showDialog( DlgID.GET_NAME );
|
||||
}
|
||||
return showing;
|
||||
}
|
||||
|
||||
private void getDictForLangIf()
|
||||
|
|
Loading…
Reference in a new issue