Skip to content

Add TaskScreen for creating compose based UI for tasks#3642

Merged
shobhitagarwal1612 merged 21 commits intomasterfrom
tasks-compose
Mar 30, 2026
Merged

Add TaskScreen for creating compose based UI for tasks#3642
shobhitagarwal1612 merged 21 commits intomasterfrom
tasks-compose

Conversation

@shobhitagarwal1612
Copy link
Copy Markdown
Member

@shobhitagarwal1612 shobhitagarwal1612 commented Mar 27, 2026

Towards #3630

Split from #3635

Things done:

  • Introduce a new compose component to load a map based fragment inside a task fragment in a standard way
  • Define a no-op compose based TaskScreen which aims to move the logic for building layout from Fragment to compose. This will be used for creating tasks in follow up PRs.
  • File / method renames

@andreia-ferreira PTAL?

@auto-assign auto-assign bot requested a review from hassan-nsubuga March 27, 2026 16:16
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (06529bd) to head (90989ba).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #3642       +/-   ##
============================================
- Coverage     66.78%       0   -66.79%     
============================================
  Files           354       0      -354     
  Lines          8781       0     -8781     
  Branches       1108       0     -1108     
============================================
- Hits           5864       0     -5864     
+ Misses         2281       0     -2281     
+ Partials        636       0      -636     

see 354 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shobhitagarwal1612
Copy link
Copy Markdown
Member Author

@andreia-ferreira PTAL?

The issue occurred because Google Maps loads asynchronously, and its listeners can fire even when the Fragment's view is being destroyed. If the user navigated away from the fragment before getMapAsync finished, onMapReady() would attempt to access viewLifecycleOwner when the fragment's view was already null (after onDestroyView()).
@shobhitagarwal1612
Copy link
Copy Markdown
Member Author

@andreia-ferreira Applied all changes. Ready for another pass!

@shobhitagarwal1612 shobhitagarwal1612 changed the title Introduce a new component for building task screen Introduce a new component TaskScreen for creating compose based UI for tasks Mar 30, 2026
@shobhitagarwal1612 shobhitagarwal1612 changed the title Introduce a new component TaskScreen for creating compose based UI for tasks Add TaskScreen for creating compose based UI for tasks Mar 30, 2026
Copy link
Copy Markdown
Collaborator

@andreia-ferreira andreia-ferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work 🚀

@shobhitagarwal1612 shobhitagarwal1612 merged commit 78a78cc into master Mar 30, 2026
7 checks passed
@shobhitagarwal1612 shobhitagarwal1612 deleted the tasks-compose branch March 30, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants