private void applyUnits(TypedArray attrs, int attributeIndex) {
        if (attrs.hasValue(attributeIndex)) {
            timeUnits = attrs.getInt(attributeIndex, 0);
        }
    }
Called whenever the input (the displayed duration string) changes.

@param view     the view that fired the event
@param duration the new duration in milli seconds
android/third_party/time-duration-picker/src/main/java/mobi/upod/timedurationpicker/TimeDurationPicker.java