Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Android] Zoom not working on Release mode #41

Open
FabriBertani opened this issue Jan 28, 2025 · 1 comment
Open

[Bug] [Android] Zoom not working on Release mode #41

FabriBertani opened this issue Jan 28, 2025 · 1 comment
Assignees
Labels
bug Something isn't working platform/android

Comments

@FabriBertani
Copy link

Description

When building the app in Release mode on Android, buttons, sliders, and steppers associated with the CurrentZoomFactor and RequestZoomFactor properties do not work. It’s worth mentioning that the pinch gesture on the CameraView works fine.
On iOS, everything functions correctly in both Debug and Release modes.

Steps to Reproduce

  1. Set CameraDemoApp as Startup Project.
  2. Set the mode to Release and build the app into an Android phone.
  3. Check and request camera permission.
  4. Navigate to Camera Preview Demo page.
  5. Click on the + and - buttons.

Expected Behavior

  • Zoom to work on Release mode using other methods than pinch gesture, on Android.

Actual Behavior

  • Zoom only works by pinch gesture on Release mode.

Basic Information

  • Version with issue: 1.4.28-pre
  • Last known good version: -

Screenshots, Attachments, Links

18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentDownEvent. id: 507872223 caller: io.sentry.android.core.internal.gestures.SentryWindowCallback.handleTouchEvent:5 io.sentry.android.core.internal.gestures.SentryWindowCallback.dispatchTouchEvent:12 com.android.internal.policy.DecorView.dispatchTouchEvent:734 
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentDownEvent. id: 507872223 caller: android.view.ScaleGestureDetector.onTouchEvent:275 androidx.camera.view.PreviewView.onTouchEvent:65 android.view.View.dispatchTouchEvent:16225 
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentMotionEventRaw. action: 2 id: 39137716
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentMotionEventRaw. action: 2 id: 39137716
18132-18132 ViewRootIm...nActivity] com.companyname.camerademoapp        I  ViewPostIme pointer 1
18132-18132 CameraController        com.companyname.camerademoapp        D  Tap to focus disabled. 
18132-18132 ViewRootIm...nActivity] com.companyname.camerademoapp        I  ViewPostIme pointer 0
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentDownEvent. id: 446000464 caller: io.sentry.android.core.internal.gestures.SentryWindowCallback.handleTouchEvent:5 io.sentry.android.core.internal.gestures.SentryWindowCallback.dispatchTouchEvent:12 com.android.internal.policy.DecorView.dispatchTouchEvent:734 
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentMotionEventRaw. action: 2 id: 832622798
18132-18132 ViewRootIm...nActivity] com.companyname.camerademoapp        I  ViewPostIme pointer 1
18132-19667 e.camerademoapp         com.companyname.camerademoapp        I  Explicit concurrent mark compact GC freed 4689KB AllocSpace bytes, 1(20KB) LOS objects, 49% free, 6515KB/12MB, paused 952us,3.738ms total 51.317ms
18132-18132 ViewRootIm...nActivity] com.companyname.camerademoapp        I  ViewPostIme pointer 0
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentDownEvent. id: 22475360 caller: io.sentry.android.core.internal.gestures.SentryWindowCallback.handleTouchEvent:5 io.sentry.android.core.internal.gestures.SentryWindowCallback.dispatchTouchEvent:12 com.android.internal.policy.DecorView.dispatchTouchEvent:734 
18132-18132 ViewRootIm...nActivity] com.companyname.camerademoapp        I  ViewPostIme pointer 1
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentMotionEventRaw. action: 1 id: 970217199
18132-18132 ViewRootIm...nActivity] com.companyname.camerademoapp        I  ViewPostIme pointer 0
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentDownEvent. id: 920586207 caller: io.sentry.android.core.internal.gestures.SentryWindowCallback.handleTouchEvent:5 io.sentry.android.core.internal.gestures.SentryWindowCallback.dispatchTouchEvent:12 com.android.internal.policy.DecorView.dispatchTouchEvent:734 
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentDownEvent. id: 920586207 caller: android.view.ScaleGestureDetector.onTouchEvent:275 androidx.camera.view.PreviewView.onTouchEvent:65 android.view.View.dispatchTouchEvent:16225 
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentMotionEventRaw. action: 2 id: 199633483
18132-18132 GestureDetector         com.companyname.camerademoapp        I  obtain mCurrentMotionEventRaw. action: 2 id: 199633483

Debug mode:

CameraScanner.Maui-zoom_bug_debug.mp4

Release mode:

CameraScanner.Maui-zoom_bug_release.mp4
@FabriBertani FabriBertani added the bug Something isn't working label Jan 28, 2025
@FabriBertani
Copy link
Author

Also, pinch gesture not working well after using zoom buttons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform/android
Projects
None yet
Development

No branches or pull requests

2 participants