Skip to content

Commit c392cba

Browse files
Updated license verification
1 parent cc329bb commit c392cba

File tree

2 files changed

+2
-2
lines changed
  • android
    • GeneralSettings/app/src/main/java/com/dynamsoft/generalsettings/scan
    • PerformanceSettings/app/src/main/java/com/dynamsoft/performancesettings

2 files changed

+2
-2
lines changed

android/GeneralSettings/app/src/main/java/com/dynamsoft/generalsettings/scan/ScanFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void DBRLicenseVerificationCallback(boolean isSuccessful, Exception e) {
7070
CameraEnhancer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", new DCELicenseVerificationListener() {
7171
@Override
7272
public void DCELicenseVerificationCallback(boolean b, Exception e) {
73-
runOnUiThread(() -> {
73+
requireActivity().runOnUiThread(() -> {
7474
if (!b && e != null) {
7575
e.printStackTrace();
7676
showErrorDialog(e.getMessage());

android/PerformanceSettings/app/src/main/java/com/dynamsoft/performancesettings/ScanFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void DBRLicenseVerificationCallback(boolean isSuccessful, Exception e) {
7272
CameraEnhancer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", new DCELicenseVerificationListener() {
7373
@Override
7474
public void DCELicenseVerificationCallback(boolean b, Exception e) {
75-
runOnUiThread(() -> {
75+
requireActivity().runOnUiThread(() -> {
7676
if (!b && e != null) {
7777
e.printStackTrace();
7878
showErrorDialog(e.getMessage());

0 commit comments

Comments
 (0)