Add material3 coloring to story reply dialog.

This commit is contained in:
Alex Hart
2022-06-20 13:02:58 -03:00
committed by Cody Henthorne
parent 2a9d2cf580
commit 1328aab939
4 changed files with 14 additions and 9 deletions

View File

@@ -22,8 +22,10 @@ abstract class KeyboardEntryDialogFragment(@LayoutRes contentLayoutId: Int) :
protected open val withDim: Boolean = false
protected open val themeResId: Int = R.style.Theme_Signal_RoundedBottomSheet
override fun onCreate(savedInstanceState: Bundle?) {
setStyle(STYLE_NORMAL, R.style.Theme_Signal_RoundedBottomSheet)
setStyle(STYLE_NORMAL, themeResId)
super.onCreate(savedInstanceState)
}

View File

@@ -41,6 +41,8 @@ class StoryDirectReplyDialogFragment :
private var isRequestingReactWithAny = false
private var isReactClosingAfterSend = false
override val themeResId: Int = R.style.Theme_Signal_RoundedBottomSheet_Stories
private val viewModel: StoryDirectReplyViewModel by viewModels(
factoryProducer = {
StoryDirectReplyViewModel.Factory(storyId, recipientId, StoryDirectReplyRepository(requireContext()))