mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
only show upgrade dialog on English systems
This commit is contained in:
parent
b684e32dca
commit
a3378d89a8
2 changed files with 4 additions and 23 deletions
|
@ -888,7 +888,9 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
|
|
||||||
boolean isUpgrade = Utils.firstBootThisVersion( m_activity );
|
boolean isUpgrade = Utils.firstBootThisVersion( m_activity );
|
||||||
if ( isUpgrade && !s_firstShown ) {
|
if ( isUpgrade && !s_firstShown ) {
|
||||||
FirstRunDialog.show( m_activity );
|
if ( LocUtils.getCurLocale( m_activity ).equals( "en" ) ) {
|
||||||
|
FirstRunDialog.show( m_activity );
|
||||||
|
}
|
||||||
s_firstShown = true;
|
s_firstShown = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -901,27 +903,6 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
ListView listView = getListView();
|
ListView listView = getListView();
|
||||||
listView.setOnItemLongClickListener( this );
|
listView.setOnItemLongClickListener( this );
|
||||||
|
|
||||||
// This doesn't work: test isn't sensitive enough, and doesn't notice
|
|
||||||
// scrolling's possible until the user actually does it, then winds up
|
|
||||||
// flashing the screen.
|
|
||||||
//
|
|
||||||
// listView.setOnScrollListener( new AbsListView.OnScrollListener() {
|
|
||||||
// @Override
|
|
||||||
// public void onScroll( AbsListView lw, int firstVisItem,
|
|
||||||
// int nVisItems, int nTotalItems ) {
|
|
||||||
// DbgUtils.logf( "onScroll(nVis=%d, nTotal=%d)", nVisItems,
|
|
||||||
// nTotalItems );
|
|
||||||
// if ( 0 < nVisItems && nVisItems < nTotalItems ) {
|
|
||||||
// DbgUtils.logf( "scroll list too big; hiding buttons" );
|
|
||||||
// soloButton.setVisibility( View.GONE );
|
|
||||||
// netButton.setVisibility( View.GONE );
|
|
||||||
// getListView().setOnScrollListener( null );
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// @Override
|
|
||||||
// public void onScrollStateChanged (AbsListView view, int scrollState) {}
|
|
||||||
// });
|
|
||||||
|
|
||||||
NetUtils.informOfDeaths( m_activity );
|
NetUtils.informOfDeaths( m_activity );
|
||||||
|
|
||||||
tryStartsFromIntent( getIntent() );
|
tryStartsFromIntent( getIntent() );
|
||||||
|
|
|
@ -495,7 +495,7 @@ public class LocUtils {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static String getCurLocale( Context context )
|
public static String getCurLocale( Context context )
|
||||||
{
|
{
|
||||||
if ( null == s_curLocale ) {
|
if ( null == s_curLocale ) {
|
||||||
String locale = XWPrefs.getFakeLocale( context );
|
String locale = XWPrefs.getFakeLocale( context );
|
||||||
|
|
Loading…
Add table
Reference in a new issue