public boolean removeChild ( String id ) { SharedPreferences prefs = loadSharedPreferences ( "children" ) ; List < String > objects = getChildrenList ( ) ; if ( objects . indexOf ( id ) == ArrayUtils . INDEX_NOT_FOUND ) { return false ; } objects . remove ( id ) ; prefs . edit ( ) . putString ( String . valueOf ( getId ( ) ) , StringUtils . join ( objects , "," ) ) . commit ( ) ; return true ; }
Removes the object from the child ids list .