fossasia / pslab-android

PSLab Android App https://play.google.com/store/apps/details?id=io.pslab

Home Page:https://pslab.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in Wave Generator

suman-somu opened this issue · comments

Actual Behaviour
We have to click twice to produce sound

Expected Behaviour
Should produce sound in one click

Steps to reproduce it
Open WAVE GENERATOR - try to click PRODUCE SOUND

LogCat for the issue

2021-11-15 08:19:09.267 11836-11836/io.pslab D/ViewRootImpl[MainActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=233.5, y[0]=1497.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89772207, downTime=89772207, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:09.268 11836-11836/io.pslab D/ViewRootImpl[MainActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=233.5, y[0]=1497.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89772207, downTime=89772207, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:09.327 11836-11836/io.pslab D/ViewRootImpl[MainActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=233.5, y[0]=1497.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89772267, downTime=89772207, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:09.329 11836-11836/io.pslab D/ViewRootImpl[MainActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=233.5, y[0]=1497.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89772267, downTime=89772207, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:09.342 11836-11836/io.pslab E/Parcel: Reading a NULL string not supported here.
2021-11-15 08:19:09.367 11836-12115/io.pslab E/libEGL: Invalid file path for libcolorx-loader.so
2021-11-15 08:19:09.367 11836-12115/io.pslab D/libMEOW: applied 1 plugins for [io.pslab]:
2021-11-15 08:19:09.367 11836-12115/io.pslab D/libMEOW:   plugin 1: [libMEOW_gift.so]:
2021-11-15 08:19:09.524 11836-11836/io.pslab W/BottomSheetBehavior: BottomSheetBehavior now supports multiple callbacks. `setBottomSheetCallback()` removes all existing callbacks, including ones set internally by library authors, which may result in unintended behavior. This may change in the future. Please use `addBottomSheetCallback()` and `removeBottomSheetCallback()` instead to set your own callbacks.
2021-11-15 08:19:09.566 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@b611ad6[]
2021-11-15 08:19:09.568 11836-11836/io.pslab D/ColorViewRootUtil: initSwipState, isDisplayCompatApp false
2021-11-15 08:19:09.568 11836-11836/io.pslab D/ColorViewRootUtil: mScreenHeight 2400, mScreenWidth 1080
2021-11-15 08:19:09.572 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2021-11-15 08:19:09.576 11836-11836/io.pslab E/libEGL: Invalid file path for libcolorx-loader.so
2021-11-15 08:19:09.576 11836-11836/io.pslab I/chatty: uid=10277(io.pslab) identical 4 lines
2021-11-15 08:19:09.576 11836-11836/io.pslab E/libEGL: Invalid file path for libcolorx-loader.so
2021-11-15 08:19:09.577 11836-11836/io.pslab I/InputTransport: Create ARC handle: 0x7304319ae0
2021-11-15 08:19:09.577 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@cdf492d, this = DecorView@b611ad6[WaveGeneratorActivity]
2021-11-15 08:19:09.636 11836-11836/io.pslab V/OplusZoomWindowDecorViewHelper: setLastReportedMergedConfiguration mZoomDisplayHeight: 2400 getDecorView.DecorView@b611ad6[WaveGeneratorActivity]
2021-11-15 08:19:10.034 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@d18ddd0, this = DecorView@51ad5cd[MainActivity]
2021-11-15 08:19:11.194 11836-11836/io.pslab D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=158.125, y[0]=1341.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89774133, downTime=89774133, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:11.194 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=158.125, y[0]=1341.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89774133, downTime=89774133, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:11.196 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=158.125, y[0]=1341.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89774133, downTime=89774133, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:11.309 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=158.125, y[0]=1341.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89774247, downTime=89774133, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:11.310 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=158.125, y[0]=1341.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89774247, downTime=89774133, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:12.771 11836-11836/io.pslab D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=145.625, y[0]=1366.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89775711, downTime=89775711, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:12.771 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=145.625, y[0]=1366.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89775711, downTime=89775711, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:12.772 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=145.625, y[0]=1366.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89775711, downTime=89775711, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:12.944 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=145.625, y[0]=1366.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89775858, downTime=89775711, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:12.946 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=145.625, y[0]=1366.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89775858, downTime=89775711, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:12.972 11836-11861/io.pslab D/AudioTrack: INSP: type=audio,case=1,set=0x72fed52300,stream_type=-1,sample_rate=44100,format=0x1,channel_mask=0x1,frame_count=512,flags=0x0,notification_frames=0,session_id=0,transfer_type=3,uid=-1,pid=-1
2021-11-15 08:19:12.972 11836-11861/io.pslab D/AudioTrack: INSP: type=audio,case=1,attributes=1,content_type=2,usage=1,source=0,flags=0x800
2021-11-15 08:19:12.972 11836-11861/io.pslab D/io.pslab: set() ro.oplus.audio.effect.type = dolby
2021-11-15 08:19:12.972 11836-11861/io.pslab D/AudioTrack: set() streamType -1, sampleRate 44100, format 0x1, channelMask 0x1, frameCount 512, flags #0, notificationFrames 0, sessionId 0, transferType 3, uid -1, pid -1 cbf 1
2021-11-15 08:19:12.972 11836-11861/io.pslab D/AudioTrack: gATLogLevel = 0
2021-11-15 08:19:12.972 11836-11861/io.pslab D/AudioTrack: set(): Building AudioTrack with attributes: usage=1 content=2 flags=0x800 tags=[]
2021-11-15 08:19:12.973 11836-11861/io.pslab D/AudioTrack: set(): 0x72fed52300, Create AudioTrackThread, tid = 12126
2021-11-15 08:19:13.002 11836-11861/io.pslab D/AudioTrack: createTrack state 0 output.outputId=21
2021-11-15 08:19:13.004 11836-11861/io.pslab D/AudioTrack: createTrack_l(1682): 0x72fed52300, mCblk = 0x72917e2000, mLatency = 256, mAfLatency = 128, frameCount = 5655, mSampleRate = 44100, mFlags = 0, mReqFrameCount = 5655, mNotificationFramesAct = 1885
2021-11-15 08:19:13.005 11836-11861/io.pslab D/IAtlas: IAtlas::init CallingPid 11836
2021-11-15 08:19:13.006 11836-11861/io.pslab D/IAtlas: IAtlas::init this 0x72fed5f250
2021-11-15 08:19:13.011 11836-11861/io.pslab W/AudioTrack: Use of stream types is deprecated for operations other than volume control
2021-11-15 08:19:13.011 11836-11861/io.pslab W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2021-11-15 08:19:13.011 11836-11861/io.pslab D/AudioTrack: start(1682): prior state:STATE_STOPPED output 21 stream 3 session 4729
2021-11-15 08:19:14.154 11836-11836/io.pslab D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=147.625, y[0]=1356.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89777094, downTime=89777094, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:14.155 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=147.625, y[0]=1356.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89777094, downTime=89777094, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:14.156 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=147.625, y[0]=1356.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89777094, downTime=89777094, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:14.243 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=147.625, y[0]=1356.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89777184, downTime=89777094, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:14.244 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=147.625, y[0]=1356.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89777184, downTime=89777094, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:14.255 11836-11836/io.pslab D/AudioTrack: flush(1682): prior state:STATE_ACTIVE
2021-11-15 08:19:14.255 11836-11836/io.pslab D/AudioTrack: stop(1682): prior state:STATE_ACTIVE output 21 stream 3 session 4729
2021-11-15 08:19:14.255 11836-11836/io.pslab D/AudioTrack: stop(1682): called with 58368 frames delivered
2021-11-15 08:19:14.255 11836-11836/io.pslab D/AudioTrack: stop(1682): 0x72fed52300 stop done
2021-11-15 08:19:14.256 11836-11836/io.pslab D/AudioTrack: stop(1682): prior state:STATE_STOPPED output 21 stream 3 session 4729
2021-11-15 08:19:14.256 11836-11836/io.pslab D/AudioTrack: ~AudioTrack(1682): 0x72fed52300
2021-11-15 08:19:14.256 11836-11836/io.pslab D/AudioTrack: ~AudioTrack, releasing mStatus =0 session id 4729 from 11836 on behalf of 11836
2021-11-15 08:19:14.257 11836-11836/io.pslab D/AudioTrack: stop(1682): prior state:STATE_STOPPED output 21 stream 3 session 4729
2021-11-15 08:19:15.760 11836-11836/io.pslab D/ViewRootImpl: processKeyEvent,KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=89778692, downTime=89778692, deviceId=-1, source=0x101, displayId=0 }
2021-11-15 08:19:15.926 11836-11836/io.pslab D/ViewRootImpl: processKeyEvent,KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=89778863, downTime=89778692, deviceId=-1, source=0x101, displayId=0 }
2021-11-15 08:19:15.953 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@d18ddd0, this = DecorView@51ad5cd[MainActivity]
2021-11-15 08:19:15.954 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@d18ddd0, this = DecorView@51ad5cd[MainActivity]
2021-11-15 08:19:16.258 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@cdf492d, this = DecorView@b611ad6[WaveGeneratorActivity]
2021-11-15 08:19:16.262 11836-11836/io.pslab D/View: [Warning] assignParent to null: this = DecorView@b611ad6[WaveGeneratorActivity]
2021-11-15 08:19:16.264 11836-11836/io.pslab I/InputTransport: Destroy ARC handle: 0x7304319ae0
2021-11-15 08:19:17.408 11836-11836/io.pslab D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=224.25, y[0]=1511.125, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89780348, downTime=89780348, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:17.408 11836-11836/io.pslab D/ViewRootImpl[MainActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=224.25, y[0]=1511.125, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89780348, downTime=89780348, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:17.410 11836-11836/io.pslab D/ViewRootImpl[MainActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=224.25, y[0]=1511.125, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89780348, downTime=89780348, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:17.520 11836-11836/io.pslab D/ViewRootImpl[MainActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=224.25, y[0]=1511.125, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89780460, downTime=89780348, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:17.520 11836-11836/io.pslab D/ViewRootImpl[MainActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=224.25, y[0]=1511.125, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89780460, downTime=89780348, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:17.526 11836-11836/io.pslab E/Parcel: Reading a NULL string not supported here.
2021-11-15 08:19:17.551 11836-12134/io.pslab E/libEGL: Invalid file path for libcolorx-loader.so
2021-11-15 08:19:17.552 11836-12134/io.pslab D/libMEOW: applied 1 plugins for [io.pslab]:
2021-11-15 08:19:17.552 11836-12134/io.pslab D/libMEOW:   plugin 1: [libMEOW_gift.so]:
2021-11-15 08:19:17.629 11836-11836/io.pslab W/BottomSheetBehavior: BottomSheetBehavior now supports multiple callbacks. `setBottomSheetCallback()` removes all existing callbacks, including ones set internally by library authors, which may result in unintended behavior. This may change in the future. Please use `addBottomSheetCallback()` and `removeBottomSheetCallback()` instead to set your own callbacks.
2021-11-15 08:19:17.652 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@ff237d7[]
2021-11-15 08:19:17.654 11836-11836/io.pslab D/ColorViewRootUtil: initSwipState, isDisplayCompatApp false
2021-11-15 08:19:17.654 11836-11836/io.pslab D/ColorViewRootUtil: mScreenHeight 2400, mScreenWidth 1080
2021-11-15 08:19:17.656 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
2021-11-15 08:19:17.659 11836-11836/io.pslab E/libEGL: Invalid file path for libcolorx-loader.so
2021-11-15 08:19:17.660 11836-11836/io.pslab I/chatty: uid=10277(io.pslab) identical 4 lines
2021-11-15 08:19:17.660 11836-11836/io.pslab E/libEGL: Invalid file path for libcolorx-loader.so
2021-11-15 08:19:17.660 11836-11836/io.pslab I/InputTransport: Create ARC handle: 0x72a68b9500
2021-11-15 08:19:17.660 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@24286e2, this = DecorView@ff237d7[WaveGeneratorActivity]
2021-11-15 08:19:17.700 11836-11836/io.pslab V/OplusZoomWindowDecorViewHelper: setLastReportedMergedConfiguration mZoomDisplayHeight: 2400 getDecorView.DecorView@ff237d7[WaveGeneratorActivity]
2021-11-15 08:19:18.089 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@d18ddd0, this = DecorView@51ad5cd[MainActivity]
2021-11-15 08:19:19.471 11836-11836/io.pslab D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=172.875, y[0]=1386.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89782411, downTime=89782411, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:19.471 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=172.875, y[0]=1386.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89782411, downTime=89782411, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:19.473 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=172.875, y[0]=1386.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89782411, downTime=89782411, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:19.560 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=172.875, y[0]=1386.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89782500, downTime=89782411, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:19.561 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=172.875, y[0]=1386.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89782500, downTime=89782411, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:19.615 11836-11849/io.pslab I/io.pslab: Compiler allocated 4649KB to compile void android.view.ViewRootImpl.performTraversals()
2021-11-15 08:19:21.024 11836-11836/io.pslab D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=163.625, y[0]=1368.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89783964, downTime=89783964, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:21.025 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=163.625, y[0]=1368.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89783964, downTime=89783964, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:21.026 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=163.625, y[0]=1368.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89783964, downTime=89783964, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:21.143 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=163.625, y[0]=1368.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89784084, downTime=89783964, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:21.144 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=163.625, y[0]=1368.625, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89784084, downTime=89783964, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:21.145 11836-11861/io.pslab D/AudioTrack: INSP: type=audio,case=1,set=0x72fed51e00,stream_type=-1,sample_rate=44100,format=0x1,channel_mask=0x1,frame_count=512,flags=0x0,notification_frames=0,session_id=0,transfer_type=3,uid=-1,pid=-1
2021-11-15 08:19:21.146 11836-11861/io.pslab D/AudioTrack: INSP: type=audio,case=1,attributes=1,content_type=2,usage=1,source=0,flags=0x800
2021-11-15 08:19:21.146 11836-11861/io.pslab D/io.pslab: set() ro.oplus.audio.effect.type = dolby
2021-11-15 08:19:21.146 11836-11861/io.pslab D/AudioTrack: set() streamType -1, sampleRate 44100, format 0x1, channelMask 0x1, frameCount 512, flags #0, notificationFrames 0, sessionId 0, transferType 3, uid -1, pid -1 cbf 1
2021-11-15 08:19:21.146 11836-11861/io.pslab D/AudioTrack: gATLogLevel = 0
2021-11-15 08:19:21.146 11836-11861/io.pslab D/AudioTrack: set(): Building AudioTrack with attributes: usage=1 content=2 flags=0x800 tags=[]
2021-11-15 08:19:21.146 11836-11861/io.pslab D/AudioTrack: set(): 0x72fed51e00, Create AudioTrackThread, tid = 12136
2021-11-15 08:19:21.162 11836-11861/io.pslab D/AudioTrack: createTrack state 0 output.outputId=21
2021-11-15 08:19:21.163 11836-11861/io.pslab D/AudioTrack: createTrack_l(1683): 0x72fed51e00, mCblk = 0x72903a6000, mLatency = 256, mAfLatency = 128, frameCount = 5655, mSampleRate = 44100, mFlags = 0, mReqFrameCount = 5655, mNotificationFramesAct = 1885
2021-11-15 08:19:21.168 11836-11861/io.pslab W/AudioTrack: Use of stream types is deprecated for operations other than volume control
2021-11-15 08:19:21.168 11836-11861/io.pslab W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2021-11-15 08:19:21.168 11836-11861/io.pslab D/AudioTrack: start(1683): prior state:STATE_STOPPED output 21 stream 3 session 4737
2021-11-15 08:19:22.188 11836-11836/io.pslab D/ViewRootImpl: enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=137.5, y[0]=1378.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89785128, downTime=89785128, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:22.188 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=137.5, y[0]=1378.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89785128, downTime=89785128, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:22.189 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=137.5, y[0]=1378.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89785128, downTime=89785128, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:22.294 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=137.5, y[0]=1378.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89785234, downTime=89785128, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:22.294 11836-11836/io.pslab D/ViewRootImpl[WaveGeneratorActivity]: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=137.5, y[0]=1378.5, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x2, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=89785234, downTime=89785128, deviceId=4, source=0x1002, displayId=0 }
2021-11-15 08:19:22.325 11836-11836/io.pslab D/AudioTrack: flush(1683): prior state:STATE_ACTIVE
2021-11-15 08:19:22.325 11836-11836/io.pslab D/AudioTrack: stop(1683): prior state:STATE_ACTIVE output 21 stream 3 session 4737
2021-11-15 08:19:22.325 11836-11836/io.pslab D/AudioTrack: stop(1683): called with 55296 frames delivered
2021-11-15 08:19:22.325 11836-11836/io.pslab D/AudioTrack: stop(1683): 0x72fed51e00 stop done
2021-11-15 08:19:22.325 11836-11836/io.pslab D/AudioTrack: stop(1683): prior state:STATE_STOPPED output 21 stream 3 session 4737
2021-11-15 08:19:22.325 11836-11836/io.pslab D/AudioTrack: ~AudioTrack(1683): 0x72fed51e00
2021-11-15 08:19:22.325 11836-11836/io.pslab D/AudioTrack: ~AudioTrack, releasing mStatus =0 session id 4737 from 11836 on behalf of 11836
2021-11-15 08:19:22.326 11836-11836/io.pslab D/AudioTrack: stop(1683): prior state:STATE_STOPPED output 21 stream 3 session 4737
2021-11-15 08:19:23.333 11836-11836/io.pslab D/ViewRootImpl: processKeyEvent,KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=89786266, downTime=89786266, deviceId=-1, source=0x101, displayId=0 }
2021-11-15 08:19:23.451 11836-11836/io.pslab D/ViewRootImpl: processKeyEvent,KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=89786388, downTime=89786266, deviceId=-1, source=0x101, displayId=0 }
2021-11-15 08:19:23.476 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@d18ddd0, this = DecorView@51ad5cd[MainActivity]
2021-11-15 08:19:23.477 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@d18ddd0, this = DecorView@51ad5cd[MainActivity]
2021-11-15 08:19:23.809 11836-11836/io.pslab V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@24286e2, this = DecorView@ff237d7[WaveGeneratorActivity]
2021-11-15 08:19:23.812 11836-11836/io.pslab D/View: [Warning] assignParent to null: this = DecorView@ff237d7[WaveGeneratorActivity]
2021-11-15 08:19:23.818 11836-11836/io.pslab I/InputTransport: Destroy ARC handle: 0x72a68b9500

Screenshots of the issue

record.mp4

Would you like to work on the issue?
yes, but anyone else can too.

This is not only for wavegenerator but for every option. We have to click twice to get started everytime.

Steps to reproduce - try to open any option and start the respective function in one click


Screenshots-

Record_2021-11-16-14-17-38_dbe5c1a2b66d718c881a98a90d7b17a3.1.mp4

@CloudyPadmal , I want some help in this. I don't know, even is this a issue or not.

Hello @suman-somu , this is not the intended behaviour for the buttons and we can call this is a bug. I suspect there is a view overlapping the who UI that prevents the first click. 🤔 but I’m not 100% sure if that’s the case.

Yep, I too think that might be the reason for this.

The reason for this behaviour seems to be the OnClickListener which is added to tvShadow in line 245 of the WaveGeneratorActivity. Once lines 245 to 252 are removed, the button click behaviour is as desired (but the BottomSheet cannot be hidden by clicking the shadow layer anymore).

I will try to fix this, but not tonight. 😴