Skip to content

Commit

Permalink
Merge pull request #1749 from Infomaniak/cleaning-new-message
Browse files Browse the repository at this point in the history
Various cleaning in NewMessage
  • Loading branch information
LunarX authored Mar 12, 2024
2 parents 72825ce + 8e40142 commit 072cb25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import javax.inject.Inject
class NewMessageActivity : BaseActivity() {

private val binding by lazy { ActivityNewMessageBinding.inflate(layoutInflater) }
private val newMessageViewModel: NewMessageViewModel by viewModels()

private val navController by lazy {
(supportFragmentManager.findFragmentById(R.id.newMessageHostFragment) as NavHostFragment).navController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ class RecipientFieldView @JvmOverloads constructor(
private fun setTextInputListeners() = with(binding.textInput) {

fun performContactSearch(text: CharSequence) {
if ((text.trim().count()) > 0) {
contactAdapter.searchContacts(text)
} else {
if (text.isBlank()) {
contactAdapter.clear()
} else {
contactAdapter.searchContacts(text)
}
}

Expand Down
3 changes: 0 additions & 3 deletions app/src/main/res/layout/fragment_new_message.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
</FrameLayout>

<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/marginStandardMedium"
Expand All @@ -138,7 +137,6 @@
app:title="@string/toTitle" />

<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/marginStandardMedium"
Expand Down Expand Up @@ -188,7 +186,6 @@
app:title="@string/bccTitle" />

<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/marginStandardMedium"
Expand Down

0 comments on commit 072cb25

Please sign in to comment.