don't show both on-first-launch alerts at the same time

This commit is contained in:
Eric House 2015-04-01 06:45:18 -07:00
parent 0df1e696f8
commit f48ed0cd9c

View file

@ -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()