private List < String > getObjectList ( ) { if ( cachedIds != null ) return cachedIds ; SharedPreferences prefs = loadSharedPreferences ( "objectList" ) ; String list = prefs . getString ( "list" , null ) ; cachedIds = ( list == null ) ? new ArrayList < String > ( ) : new ArrayList <> ( Arrays . asList ( list . split ( "," ) ) ) ; return cachedIds ; }
Get a list of objects ids .