public static void removeTriggerFromLayoutActiveTriggers(GoosciSensorLayout.SensorLayout layout,String triggerId){
  List<String> triggersList=new ArrayList<>();
  triggersList.addAll(Arrays.asList(layout.activeSensorTriggerIds));
  if (triggersList.contains(triggerId)) {
    triggersList.remove(triggerId);
    layout.activeSensorTriggerIds=triggersList.toArray(new String[triggersList.size()]);
  }
}

public static void removeTriggerFromLayoutActiveTriggers ( GoosciSensorLayout . SensorLayout layout , String triggerId ) { List < String > triggersList = new ArrayList < > ( ) ; triggersList . addAll ( Arrays . asList ( layout . activeSensorTriggerIds ) ) ; if ( triggersList . contains ( triggerId ) ) { triggersList . remove ( triggerId ) ; layout . activeSensorTriggerIds = triggersList . toArray ( new String [ triggersList . size ( ) ] ) ; } }
removes the trigger id from the layout ' s active triggers .
