From 0f4b66eb37d6de1ca010118fa6d2446941d8b9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Tue, 16 Jan 2024 10:29:15 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=84=E3=82=8D=E3=81=84=E3=82=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scanner/ScannerManagerActivity.java | 16 ++++++++++++++++ .../main/res/layout/activity_scanner_manager.xml | 1 + 2 files changed, 17 insertions(+) diff --git a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java index fed35e21..c681d133 100644 --- a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java +++ b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java @@ -2,6 +2,7 @@ package one.nem.lacerta.component.scanner; import android.os.Bundle; import android.util.Log; +import android.view.View; import androidx.activity.EdgeToEdge; import androidx.annotation.AnimatorRes; @@ -15,10 +16,16 @@ import com.websitebeaver.documentscanner.DocumentScanner; import javax.inject.Inject; import dagger.hilt.android.AndroidEntryPoint; +import one.nem.lacerta.utils.LacertaLogger; @AndroidEntryPoint public class ScannerManagerActivity extends AppCompatActivity { + @Inject + LacertaLogger logger; + + View view; + DocumentScanner documentScanner = new DocumentScanner( this, (croppedImageResults) -> { @@ -54,6 +61,15 @@ public class ScannerManagerActivity extends AppCompatActivity { documentScanner.startScan(); // Init + this.view = findViewById(R.id.main); // TODO-rca:なんとかする + + } + + private void initResultView() { + if (this.view == null) { + + return; + } } } \ No newline at end of file diff --git a/component/scanner/src/main/res/layout/activity_scanner_manager.xml b/component/scanner/src/main/res/layout/activity_scanner_manager.xml index 7d30e3e4..3ccab6b3 100644 --- a/component/scanner/src/main/res/layout/activity_scanner_manager.xml +++ b/component/scanner/src/main/res/layout/activity_scanner_manager.xml @@ -1,6 +1,7 @@