mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
trying again to get survey display logic right
This commit is contained in:
parent
e04f7c8f35
commit
432badf889
1 changed files with 4 additions and 4 deletions
|
@ -530,14 +530,14 @@ public class Utils {
|
|||
s_isFirstBootThisVersion = new Boolean( newVersion );
|
||||
s_isFirstBootEver = new Boolean( -1 == prevVersion );
|
||||
|
||||
int firstVersion = prefs.getInt( FIRST_VERSION_KEY, 0 );
|
||||
s_firstVersion = new Boolean( firstVersion == thisVersion );
|
||||
if ( newVersion || 0 == firstVersion ) {
|
||||
int firstVersion = prefs.getInt( FIRST_VERSION_KEY, Integer.MAX_VALUE );
|
||||
s_firstVersion = new Boolean( firstVersion < thisVersion );
|
||||
if ( newVersion || Integer.MAX_VALUE == firstVersion ) {
|
||||
SharedPreferences.Editor editor = prefs.edit();
|
||||
if ( newVersion ) {
|
||||
editor.putInt( SHOWN_VERSION_KEY, thisVersion );
|
||||
}
|
||||
if ( 0 == firstVersion ) {
|
||||
if ( Integer.MAX_VALUE == firstVersion ) {
|
||||
editor.putInt( FIRST_VERSION_KEY, thisVersion );
|
||||
}
|
||||
editor.commit();
|
||||
|
|
Loading…
Add table
Reference in a new issue