Skip to content

Expose barcode encoding through Content Provider #2890

@TheLastProject

Description

@TheLastProject

#2716 added support for setting a custom barcode encoding. However, it does not expose this to the Content Provider.

The main reason for this is because the default behaviour is to use "Automatic", which is stored as "null" in the database. However, exposing "null" through the Content Provider would force third party apps to either bundle zxing and use its guessEncoding feature or create their own compatible guessing method, risking inconsistency between the code on Catima and on device.

@joserebelo suggested possibly using a CursorWrapper to translate the null values, need to look into how viable this is: #2716 (comment)

This issue currently prevents third party apps like Gadgetbridge from knowing if a Catima code is UTF-8 or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    common: frequentAffects or can be seen by most users regularly or impacts most users' first experienceseverity: majorSeverely degrades major functionality or product features, with no satisfactory workaroundtype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions