Skip to content
Snippets Groups Projects
Unverified Commit 5549d03a authored by Mohamed Metwalli's avatar Mohamed Metwalli Committed by GitHub
Browse files

Qr code error level (EXPOSUREAPP-8073) (#3531)

* Set medium error level as default

* Version bump 2.4.2.0
parent 720c3474
No related branches found
Tags v2.4.2 v2.4.2-RC0
No related merge requests found
...@@ -40,7 +40,7 @@ class QrCodeGenerator @Inject constructor( ...@@ -40,7 +40,7 @@ class QrCodeGenerator @Inject constructor(
input: String, input: String,
length: Int = 1000, length: Int = 1000,
margin: Int = 1, margin: Int = 1,
correctionLevel: ErrorCorrectionLevel = ErrorCorrectionLevel.Q, correctionLevel: ErrorCorrectionLevel = ErrorCorrectionLevel.M,
characterSet: String = Charsets.UTF_8.name() characterSet: String = Charsets.UTF_8.name()
): Bitmap = withContext(dispatcherProvider.Default) { ): Bitmap = withContext(dispatcherProvider.Default) {
Timber.i("correctionLevel=$correctionLevel") Timber.i("correctionLevel=$correctionLevel")
......
...@@ -815,7 +815,7 @@ ...@@ -815,7 +815,7 @@
app:argType="string" /> app:argType="string" />
<argument <argument
android:name="correctionLevel" android:name="correctionLevel"
android:defaultValue="Q" android:defaultValue="M"
app:argType="com.google.zxing.qrcode.decoder.ErrorCorrectionLevel" /> app:argType="com.google.zxing.qrcode.decoder.ErrorCorrectionLevel" />
</fragment> </fragment>
<action <action
......
...@@ -19,5 +19,5 @@ org.gradle.dependency.verification.console=verbose ...@@ -19,5 +19,5 @@ org.gradle.dependency.verification.console=verbose
# Versioning, this is used by the app & pipelines to calculate the current versionCode & versionName # Versioning, this is used by the app & pipelines to calculate the current versionCode & versionName
VERSION_MAJOR=2 VERSION_MAJOR=2
VERSION_MINOR=4 VERSION_MINOR=4
VERSION_PATCH=1 VERSION_PATCH=2
VERSION_BUILD=2 VERSION_BUILD=0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment