Skip to content

Commit

Permalink
Issues #39, #42, #55 resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
androidmads committed Sep 5, 2024
1 parent f7d33bb commit 60a215e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void encodeQRCodeContents(String data, Bundle bundle, String type) {
switch (type) {
case QRGContents.Type.TEXT:
if (data != null && data.length() > 0) {
contents = data;
contents = data.replace("\\n", "\n");
displayContents = data;
title = "Text";
}
Expand Down Expand Up @@ -279,7 +279,7 @@ private String guessAppropriateEncoding(CharSequence contents) {
return "UTF-8";
}
}
return null;
return "UTF-8"; // Default encoding
}

private String trim(String s) {
Expand Down
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 33
compileSdkVersion 34

defaultConfig {
applicationId "androidmads.example"
minSdkVersion 14
minSdkVersion 19
targetSdkVersion 33
versionCode 1
versionName "1.0"
Expand All @@ -24,7 +24,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
// implementation project(':QRGenearator')
implementation 'com.github.androidmads:QRGenerator:1.0.1'
implementation project(':QRGenearator')
// implementation 'com.github.androidmads:QRGenerator:1.0.1'

}

0 comments on commit 60a215e

Please sign in to comment.