Package-level declarations
Types
A helper object to save the application's Logcat output to a file.
Properties
Functions
fuzzyCompare is based on Damerau-Levenshtein distance. It return a score which is the ratio of the distance to the length of the strings. However, it also allows for the search string to be shorter than the haystack string and will give a slightly better score to strings that are naturally the same length.
Return the application locale if there is one, otherwise return the default system one
Check if the phone's language differs from the app's configured language and is supported. Returns the matching Language if the phone language is supported but different from the app language, or null if they match or the phone language is not supported.
Although the formatting of the address is not hugely time consuming, it adds up and so in Places Nearby the processing is deferred to the point at which the location information is displayed. The display uses a LazyColumn so even if there are hundreds of items in the list only the ones appearing on screen will need to call process.