Skip to content

Commit

Permalink
[SDKY-1076] Tire Size Information Details
Browse files Browse the repository at this point in the history
  • Loading branch information
berndkamplanyline authored Nov 23, 2022
2 parents 4fcea69 + d8f95ef commit b5f13b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import io.anyline.plugin.tire.TireScanResult;
import io.anyline.plugin.tire.TireScanViewPlugin;
import io.anyline.view.AbstractBaseScanViewPlugin;
import io.anyline.plugin.tire.TireSizeScanResult;
import io.anyline.view.CutoutRect;
import io.anyline.view.ParallelScanViewComposite;
import io.anyline.view.ScanView;
Expand Down Expand Up @@ -349,6 +350,10 @@ public void onResult(ScanResult result) {
jsonResult.put("text", tireScanResult.getResult().trim());
jsonResult = AnylinePluginHelper.jsonHelper(Anyline4Activity.this, tireScanResult,
jsonResult);
if (tireScanResult instanceof TireSizeScanResult) {
String tireScanDetailedResult = ((TireSizeScanResult) tireScanResult).getResult().toJson();
jsonResult.put("tireScanDetailedResult", tireScanDetailedResult);
}
} catch (JSONException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit b5f13b6

Please sign in to comment.