public void loadOffsets(Context context){
  String prefs=Utils.getString(PREF_OFFSETS,"",context);
  if (prefs.length() < 1)   return;
  Map<Integer,Long> offsets=new HashMap<>();
  String[] sOffsets=prefs.split(",");
  for (  String offset : sOffsets) {
    String[] parts=offset.split(" ");
    offsets.put(Utils.stringToInt(parts[0]),Utils.stringToLong(parts[1]));
  }
  _monitor.setOffsets(offsets);
}

public void loadOffsets ( Context context ) { String prefs = Utils . getString ( PREF_OFFSETS , "" , context ) ; if ( prefs . length ( ) < 1 ) return ; Map < Integer , Long > offsets = new HashMap < > ( ) ; String [ ] sOffsets = prefs . split ( "," ) ; for ( String offset : sOffsets ) { String [ ] parts = offset . split ( " " ) ; offsets . put ( Utils . stringToInt ( parts [ 0 ] ) , Utils . stringToLong ( parts [ 1 ] ) ) ; } _monitor . setOffsets ( offsets ) ; }
load the saved string of offsets from preferences and put it into the state monitor
