From 3eac0cf49cd4fbbd66f9b7c9f4717fceb76ce4db 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 12:15:16 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A2=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3?= =?UTF-8?q?=E3=82=92=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=AB=E5=90=88?= =?UTF-8?q?=E3=82=8F=E3=81=9B=E3=81=A6=E6=9B=B4=E6=96=B0=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/scanner/ScannerManagerActivity.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 f02d1de7..1b229142 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 @@ -98,13 +98,14 @@ public class ScannerManagerActivity extends AppCompatActivity { @Override public boolean onOptionsItemSelected(android.view.MenuItem item) { - if (item.getItemId() == R.id.action_close) { - finish(); - return true; - } else if (item.getItemId() == R.id.action_save) { - // TODO-rca: 保存処理 + if (item.getItemId() == R.id.action_save_new) { + // 新ドキュメントとして保存 Toast.makeText(this, "保存処理", Toast.LENGTH_SHORT).show(); return true; + } else if (item.getItemId() == R.id.action_insert_exist) { + // 既存ドキュメントに挿入 + Toast.makeText(this, "挿入処理", Toast.LENGTH_SHORT).show(); + return true; } else if (item.getItemId() == android.R.id.home) { finish(); return true;