You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minimizing the app with "no background processes” settings on removes offline layers to add from the list and then trying to add layers crashes the app.
Steps to reproduce the problem
Set "no background processes" in the device.
Go to any form with maps and open the map.
Tap the offline layers icon, "add layers” and select some layers to add.
While on "Add layers” with the list of layer to add, minimize the app and go to a different app.
Go back to Collect (the list of layers to add is empty).
Tap "add layers”.
Expected behavior
I'm not sure what is the expected result - if it's possible to keep offline layers on the list in this case or it's better to close all the dialogs/bottom sheets
The text was updated successfully, but these errors were encountered:
This happens because we store selected layers (layers to import) using LiveData and it gets cleared on process death. @seadowg do you think it's worth the effort to keep that data using SavedStateHandle? I was rather thinking about dismissing that confirmation dialog and letting users select the layers again.
@seadowg do you think it's worth the effort to keep that data using SavedStateHandle? I was rather thinking about dismissing that confirmation dialog and letting users select the layers again.
I think for the moment we should just dismiss the dialog (going back to the picker) if this happens rather than investing in dealing with save state.
ODK Collect version
the master version 7d30e18
Android version
10, 14
Device used
Redmi 9T, Pixel 7a
Problem description
Minimizing the app with "no background processes” settings on removes offline layers to add from the list and then trying to add layers crashes the app.
![crashLayers](https://private-user-images.githubusercontent.com/56479916/341760149-41700dd8-72b8-4b45-bbe6-d3bca1f4dde6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5NDQ3NjIsIm5iZiI6MTcxOTk0NDQ2MiwicGF0aCI6Ii81NjQ3OTkxNi8zNDE3NjAxNDktNDE3MDBkZDgtNzJiOC00YjQ1LWJiZTYtZDNiY2ExZjRkZGU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDE4MjEwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2YzM1ZDcxMjc2ZjAzNzY0ZDEzZWU0MDgzMWMxN2Q4NGE4MmI5NGFiODVjZWE2YzRlYmRiYTY5ZTU5N2MyYjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MH-4qcDRDgzjiovYttEAQryob6PLJbcAAeEiNp6pv7c)
Steps to reproduce the problem
Expected behavior
I'm not sure what is the expected result - if it's possible to keep offline layers on the list in this case or it's better to close all the dialogs/bottom sheets
The text was updated successfully, but these errors were encountered: