public static void addTriggerToLayoutActiveTriggers(GoosciSensorLayout.SensorLayout layout,String triggerId){
  int oldSize=layout.activeSensorTriggerIds.length;
  for (int i=0; i < oldSize; i++) {
    if (TextUtils.equals(layout.activeSensorTriggerIds[i],triggerId)) {
      return;
    }
  }
  String[] newTriggerIds=new String[oldSize + 1];
  System.arraycopy(layout.activeSensorTriggerIds,0,newTriggerIds,0,layout.activeSensorTriggerIds.length);
  newTriggerIds[oldSize]=triggerId;
  layout.activeSensorTriggerIds=newTriggerIds;
}

public static void addTriggerToLayoutActiveTriggers ( GoosciSensorLayout . SensorLayout layout , String triggerId ) { int oldSize = layout . activeSensorTriggerIds . length ; for ( int i = 0 ; i < oldSize ; i ++ ) { if ( TextUtils . equals ( layout . activeSensorTriggerIds [ i ] , triggerId ) ) { return ; } } String [ ] newTriggerIds = new String [ oldSize + 1 ] ; System . arraycopy ( layout . activeSensorTriggerIds , 0 , newTriggerIds , 0 , layout . activeSensorTriggerIds . length ) ; newTriggerIds [ oldSize ] = triggerId ; layout . activeSensorTriggerIds = newTriggerIds ; }
adds the trigger id to the layout ' s active triggers if it is not already in the list .
