Search in sources :

Example 6 with TransportOptions

use of org.thoughtcrime.securesms.TransportOptions in project Signal-Android by signalapp.

the class SendButton method initializeTransportOptions.

private TransportOptions initializeTransportOptions(boolean media) {
    if (isInEditMode())
        return null;
    TransportOptions transportOptions = new TransportOptions(getContext(), media);
    transportOptions.addOnTransportChangedListener(this);
    setOnLongClickListener(this);
    return transportOptions;
}
Also used : TransportOptions(org.thoughtcrime.securesms.TransportOptions)

Aggregations

TransportOptions (org.thoughtcrime.securesms.TransportOptions)6 NonNull (androidx.annotation.NonNull)2 MediaConstraints (org.thoughtcrime.securesms.mms.MediaConstraints)2