trying again to get survey display logic right

This commit is contained in:
Eric House 2014-08-18 07:35:40 -07:00
parent e04f7c8f35
commit 432badf889

View file

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