app/src/main/java/org/andstatus/app/data/ContentValuesUtils.java
/**
     * Move boolean value of the key from valuesIn to valuesOut and remove it from valuesIn
     * @param key
     * @param valuesIn
     * @param valuesOut  may be null
     * @return 1 for true, 0 for false and 2 for "not present"
     */
Move boolean value of the key from valuesIn to valuesOut and remove it from valuesIn
@param key
@param valuesIn
@param valuesOut  may be null
@return 1 for true, 0 for false and 2 for "not present"
Move boolean value of the key from valuesIn to valuesOut and remove it from valuesIn @param key @param valuesIn @param valuesOut may be null @return 1 for true 0 for false and 2 for " not present "
public static int moveBooleanKey(String key, String sourceSuffix, ContentValues valuesIn, ContentValues valuesOut) {
        int ret = 2;
        if (valuesIn != null && valuesIn.containsKey(key + sourceSuffix)) {
            ret = SharedPreferencesUtil.isTrueAsInt(valuesIn.get(key + sourceSuffix));
            valuesIn.remove(key + sourceSuffix);
            if (valuesOut != null) {
                valuesOut.put(key, ret);
            }
        }
        return ret;
    }
public static int moveBooleanKey ( String key , String sourceSuffix , ContentValues valuesIn , ContentValues valuesOut ) { int ret = 2 ; if ( valuesIn != null && valuesIn . containsKey ( key + sourceSuffix ) ) { ret = SharedPreferencesUtil . isTrueAsInt ( valuesIn . get ( key + sourceSuffix ) ) ; valuesIn . remove ( key + sourceSuffix ) ; if ( valuesOut != null ) { valuesOut . put ( key , ret ) ; } } return ret ; }
Move boolean value of the key from valuesIn to valuesOut and remove it from valuesIn
 @param key
 @param valuesIn
 @param valuesOut  may be null
 @return 1 for true, 0 for false and 2 for "not present"
Move boolean value of the key from valuesIn to valuesOut and remove it from valuesIn @param key @param valuesIn @param valuesOut may be null @return 1 for true 0 for false and 2 for " not present "