From ecab901e7376d1a0bd2bbd5811743dee204ddc76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9E=97=E4=BC=B8=E9=83=8E?= Date: Thu, 13 Jan 2022 15:21:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AF=E3=83=AD=E3=83=83=E3=83=97=E7=AF=84?= =?UTF-8?q?=E5=9B=B2=E3=81=AE=E8=A1=A8=E7=A4=BA=E3=83=95=E3=83=A9=E3=82=B0?= =?UTF-8?q?=E3=82=92=E5=BC=95=E6=95=B0=E3=81=AB=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deviceplugin/host/recorder/ui/PreviewSurfaceView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/recorder/ui/PreviewSurfaceView.java b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/recorder/ui/PreviewSurfaceView.java index 755b495c0..05b3f1daa 100644 --- a/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/recorder/ui/PreviewSurfaceView.java +++ b/dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/recorder/ui/PreviewSurfaceView.java @@ -229,8 +229,9 @@ public SurfaceView getSurfaceView() { * * @param key 切り抜き範囲の枠を識別するキー * @param cropRect 切り抜き範囲の枠 + * @param visible 表示フラグ */ - public void addCropRect(Object key, Rect cropRect) { + public void addCropRect(Object key, Rect cropRect, boolean visible) { if (key == null || cropRect == null) { return; } @@ -241,6 +242,7 @@ public void addCropRect(Object key, Rect cropRect) { holder = new CropRectHolder(); holder.mTag = key; holder.mCropRect = cropRect; + holder.mVisible = visible; holder.mView = inflate(getContext(), R.layout.item_crop_frame, null); TextView tv = holder.mView.findViewById(R.id.textview);