accurascan_kyc 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
package com.accurascankyc;
|
|
2
2
|
|
|
3
|
+
import android.app.Activity;
|
|
3
4
|
import android.app.Dialog;
|
|
4
5
|
import android.content.Intent;
|
|
5
6
|
import android.content.pm.ActivityInfo;
|
|
@@ -86,6 +87,7 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
|
|
|
86
87
|
public static JSONObject accuraTitleMsg;
|
|
87
88
|
public static int barcodeFormat;
|
|
88
89
|
private Bitmap frame;
|
|
90
|
+
private static Activity appActivity = null;
|
|
89
91
|
|
|
90
92
|
private static class MyHandler extends Handler {
|
|
91
93
|
|
|
@@ -138,7 +140,14 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
|
|
|
138
140
|
public void onCreate(Bundle savedInstanceState) {
|
|
139
141
|
if (cameraView != null) cameraView.startOcrScan(false);
|
|
140
142
|
|
|
141
|
-
|
|
143
|
+
try{
|
|
144
|
+
if(accuraErrorConfg.getInt("enableLogs") == 1){
|
|
145
|
+
AccuraLog.enableLogs(true); // make sure to disable logs in release mode
|
|
146
|
+
AccuraLog.refreshLogfile(appActivity);
|
|
147
|
+
}
|
|
148
|
+
} catch (JSONException e) {
|
|
149
|
+
e.printStackTrace();
|
|
150
|
+
}
|
|
142
151
|
|
|
143
152
|
int orientation = getResources().getConfiguration().orientation;
|
|
144
153
|
if (orientation == 1) {
|