Add initial send support to CFv2.

This commit is contained in:
Cody Henthorne
2023-05-15 12:38:28 -04:00
committed by Greyson Parrelli
parent 5c78de2f46
commit 2aaeda6ca8
7 changed files with 410 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ package org.thoughtcrime.securesms.components;
import android.content.Context;
import android.util.AttributeSet;
import android.view.WindowInsets;
import android.widget.EditText;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -76,6 +77,10 @@ public class InsetAwareConstraintLayout extends ConstraintLayout {
}
}
public void showSoftkey(@NonNull EditText editText) {
ViewUtil.focusAndShowKeyboard(editText);
}
public interface WindowInsetsTypeProvider {
WindowInsetsTypeProvider ALL = () ->

View File

@@ -216,7 +216,7 @@ class SendButton(context: Context, attributeSet: AttributeSet?) : AppCompatImage
.show(items)
}
interface SendTypeChangedListener {
fun interface SendTypeChangedListener {
fun onSendTypeChanged(newType: MessageSendType, manuallySelected: Boolean)
}