Closed gerigorila closed 10 months ago
Thank you @gerigorila for the issue, let me investigate it
Please update to 1.0.8 and confirm if the issue is fixed, also there is a parameter defaultCountryCode = "tz"
that you can use to set your default country code.
Description: When airplane mode is enabled on the device, the app crashes because it is unable to get the country code from the SIM card. The KomposeCountryCodePicker component does not have a default country code set, so it throws a NoSuchElementException when it tries to get the country code from the empty SIM card data.
Steps to reproduce: Enable airplane mode on the device. Open the app and navigate to the screen where the KomposeCountryCodePicker component is used.
Expected behavior: The app should not crash when airplane mode is enabled. The KomposeCountryCodePicker component should either set a default country code or handle the case where there is no SIM card data available.
Actual behavior: The app crashes with a NoSuchElementException.
Device info: Google Pixel 2XL api level 30
Exception code: