mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +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 );
|
getDefaultPlayerName( m_activity, 0, true );
|
||||||
}
|
}
|
||||||
CommonPrefs.setDefaultPlayerName( m_activity, name );
|
CommonPrefs.setDefaultPlayerName( m_activity, name );
|
||||||
|
|
||||||
|
getDictForLangIf(); // hack!!!
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
@ -910,9 +912,9 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
|
|
||||||
tryStartsFromIntent( getIntent() );
|
tryStartsFromIntent( getIntent() );
|
||||||
|
|
||||||
askDefaultNameIf();
|
if ( !askDefaultNameIf() ) {
|
||||||
|
getDictForLangIf();
|
||||||
getDictForLangIf();
|
}
|
||||||
|
|
||||||
m_origTitle = getTitle();
|
m_origTitle = getTitle();
|
||||||
} // init
|
} // 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 );
|
String name = CommonPrefs.getDefaultPlayerName( m_activity, 0, true );
|
||||||
CommonPrefs.setDefaultPlayerName( m_activity, name );
|
CommonPrefs.setDefaultPlayerName( m_activity, name );
|
||||||
showDialog( DlgID.GET_NAME );
|
showDialog( DlgID.GET_NAME );
|
||||||
}
|
}
|
||||||
|
return showing;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getDictForLangIf()
|
private void getDictForLangIf()
|
||||||
|
|
Loading…
Add table
Reference in a new issue