-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Removed auto-populating phone numbers #5481
Conversation
...pp/src/androidTest/java/org/odk/collect/android/feature/settings/FormMetadataSettingsTest.kt
Show resolved
Hide resolved
a632a40
to
bb50576
Compare
metadata/src/main/java/org/odk/collect/metadata/InstallIDProvider.kt
Outdated
Show resolved
Hide resolved
metadata/src/test/java/org/odk/collect/metadata/PropertyManagerTest.kt
Outdated
Show resolved
Hide resolved
permissions/src/test/java/org/odk/collect/permissions/PermissionsProviderTest.kt
Outdated
Show resolved
Hide resolved
b9b94fc
to
7cddbaf
Compare
I checked it on Android 10, 11, 13 (with a sim card) and in settings(user and device identity) and metadata form the phone number isn't visible. |
Wow, I've tested it on emulators so everything was fine but I can confirm it's not always the case with real devices. One problem is that on newer devices an exception might be thrown which I could handle with the fix we already have in #5483. |
I'm going to move the issue over to v2023.2 and make this PR a draft. We can move the discussion over to the issue. |
If the user fills the user-defined metadata values in settings and later on removes them, the values are still present in the metadata form opened after removing the values. If the user kills the app, the values won’t be visible in the metadata form any more. Steps to reproduce:
|
Good catch. The issue has been fixed. |
Read phone state permission appeared again. Steps to reproduce:
|
This seems impossible, I've checked Android 13... I think it was an installation error and you ended up testing the master branch thinking it's this branch. Please uninstall the app completly and do everything again. |
Correct, something was wrong with my branch. False alarm ;) |
Tested with Success! Verified on device with Android 8.1, 10 Verified cases:
|
Tested with Success! Verified on device with Android 12, 13 |
Closes #5482
What has been done to verify that this works as intended?
I've added automated tests and tested the fix manually.
Why is this the best possible solution? Were any other approaches considered?
Please test metadata using the form attached to the issue. There was a lot of refactoring there so everything related to it might have been affected.
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
I've implemented a lot of refactoring so please test all metadata questions. Please also read the automated test because it might be helpful.
Do we need any specific form for testing your changes? If so, please attach one.
The form attached to the issue.
Does this change require updates to documentation? If so, please file an issue here and include the link below.
Yes getodk/docs#1596
Before submitting this PR, please make sure you have:
./gradlew checkAll
and confirmed all checks still pass OR confirm CircleCI build passes and run./gradlew connectedDebugAndroidTest
locally.