From 432badf889482f1ae7e99c96667acf9eee634f35 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 18 Aug 2014 07:35:40 -0700 Subject: [PATCH] trying again to get survey display logic right --- .../XWords4/src/org/eehouse/android/xw4/Utils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java index 83337fe23..bb6adb1fb 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java @@ -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();