Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

IllegalArgumentException (invalid provider: null) in Alarmio.getSunsetCalculator #124

Open
fennifith opened this issue May 6, 2020 · 0 comments
Labels

Comments

@fennifith
Copy link
Owner

Should perhaps add some check for devices that don't have any location provider and remove the auto-sunrise/sunset option from the theme settings, maybe? Weird edge case.

java.lang.IllegalArgumentException: invalid provider: null
at android.location.LocationManager.checkProvider(LocationManager.java:2337)
at android.location.LocationManager.getLastKnownLocation(LocationManager.java:1427)
at me.jfenn.alarmio.Alarmio.getSunsetCalculator(Alarmio.java:375)
at me.jfenn.alarmio.Alarmio.getDayStart(Alarmio.java:331)
at me.jfenn.alarmio.data.preference.ThemePreferenceData.bindViewHolder(ThemePreferenceData.kt:116)
at me.jfenn.alarmio.data.preference.ThemePreferenceData.bindViewHolder(ThemePreferenceData.kt:34)
...
@fennifith fennifith added the bug label May 6, 2020
@fennifith fennifith changed the title IllegalArgumentException in Alarmio.getSunsetCalculator IllegalArgumentException (invalid provider: null) in Alarmio.getSunsetCalculator May 6, 2020
fennifith added a commit that referenced this issue May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant