Skip to content

Commit

Permalink
fix: Remove quickActionBar blink when opening a Thread
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Jan 30, 2025
1 parent 7be6e08 commit e4a8ae7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class UpgradeProductBottomSheetDialog : InformationBottomSheetDialog() {
super.onViewCreated(view, savedInstanceState)

title.setText(R.string.disabledFeatureFlagTitle)
description.text = getString(R.string.disabledFeatureFlagDescription)
description.setText(R.string.disabledFeatureFlagDescription)
infoIllustration.setBackgroundResource(R.drawable.ic_update_logo)

actionButton.apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ class ThreadFragment : Fragment() {
iconTint = ColorStateList.valueOf(color)
}

binding.quickActionBar.isGone = thread.numberOfScheduledDrafts == thread.messages.size
binding.quickActionBar.isVisible = thread.numberOfScheduledDrafts != thread.messages.size
}
}

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/layout/fragment_thread.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,13 @@
android:id="@+id/quickActionBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/threadCoordinatorLayout"
app:menu="@menu/message_menu" />
app:menu="@menu/message_menu"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>

<com.infomaniak.mail.ui.main.EmptyStateView
Expand Down

0 comments on commit e4a8ae7

Please sign in to comment.