Skip to content

Commit b6e35ec

Browse files
Merge pull request #582 from TakayukiHoshi1984/bugfix_crop_visible_flag
クロップ範囲の表示フラグを引数に追加
2 parents 5d2adc7 + ecab901 commit b6e35ec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/recorder/ui

dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/recorder/ui/PreviewSurfaceView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ public SurfaceView getSurfaceView() {
229229
*
230230
* @param key 切り抜き範囲の枠を識別するキー
231231
* @param cropRect 切り抜き範囲の枠
232+
* @param visible 表示フラグ
232233
*/
233-
public void addCropRect(Object key, Rect cropRect) {
234+
public void addCropRect(Object key, Rect cropRect, boolean visible) {
234235
if (key == null || cropRect == null) {
235236
return;
236237
}
@@ -241,6 +242,7 @@ public void addCropRect(Object key, Rect cropRect) {
241242
holder = new CropRectHolder();
242243
holder.mTag = key;
243244
holder.mCropRect = cropRect;
245+
holder.mVisible = visible;
244246
holder.mView = inflate(getContext(), R.layout.item_crop_frame, null);
245247

246248
TextView tv = holder.mView.findViewById(R.id.textview);

0 commit comments

Comments
 (0)