Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide default 'Signal' text when calls in call log selected #13834

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

UnreachableCode
Copy link

@UnreachableCode UnreachableCode commented Dec 10, 2024

Fixes issue #13260 where the user would see 'Signal' with "[n] selected" in the ActionBar.

First time contributor checklist

Contributor checklist

  • Pixel 7, Android 14
  • My contribution is fully baked and ready to be merged as is
  • I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234 syntax

Description

Fixed the overlapping text issue that @xtrcv demonstrated.

Achieved by first hiding supportActionBar when ActionMode starts (items selected) and showing supportActionBar when it ends (all items deselected). The supportActionBar also needs to be hidden again in onResume when the user has navigated back to the screen (but only if no items are selected, using viewModel.selectionStateSnapshot.isNotEmpty(...).

I ran gradlw format with no relevant issues.

Video of manual test:
https://github.com/user-attachments/assets/319f01e5-ffa5-4187-aecf-93b5e314f9d3

Fixes issue signalapp#13260 where the user would see 'Signal' with "[n] selected" in the ActionBar. 

Achieved by first hiding supportActionBar when ActionMode starts (items selected) and showing supportActionBar when it ends (all items deselected). The supportActionBar also needs to be hidden again in onResume when the user has navigated back to the screen (but only if no items are selected, using viewModel.selectionStateSnapshot.isNotEmpty(...).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant