Hi Henrik,
I retired with smallest possible code (plz refer screenshot).
Still the 'no' path is being triggered irrespective of I am clicking either 'yes' or 'no' on my Motorola Mobile.
Whereas, The same flow is working as expected on my another mobile (Samsung). The 'yes' path is being triggered on clicking 'yes' and vice-versa.
For debugging purposes, I have also collected logs from both the mobiles for both actions (clicking 'yes' and 'no' both), and added them below.
1. Action: Clicking 'no', Output: Triggering 'no' path, Mobile: Motorola (with issue)
02-14 17:54:52.081 18428 18428 D InputMethodManager: showSoftInput() view=com.google.android.material.textfield.TextInputEditText{5283e31 VFED..CL. .F.P.... 0,0-457,78 #1020003 android:id/edit aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
02-14 17:54:52.082 18428 18428 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@87f7e04
02-14 17:54:52.087 18428 18450 D Surface : Surface::disconnect
02-14 17:54:52.087 18428 18450 D BufferQueueProducer: [PopupWindow:6b389b1#76924(BLAST Consumer)pid:18428](id:47fc0000009d,api:1,p:18428,c:18428) disconnect: api 1
02-14 17:54:52.117 18428 18428 D InsetsController: show(ime(), fromIme=true)
02-14 17:54:52.117 18428 18428 I ImeTracker: com.llamalab.automate:ui:6dfcea22: onCancelled at PHASE_CLIENT_APPLY_ANIMATION
02-14 17:54:52.122 18428 18428 W lab.automate:ui: type=1400 audit(0.0:378117): avc: denied { read } for name="u:object_r:vendor_display_prop:s0" dev="tmpfs" ino=2970 scontext=u:r:untrusted_app:s0:c76,c258,c512,c768 tcontext=u:object_r:vendor_display_prop:s0 tclass=file permissive=0 app=com.llamalab.automate
02-14 17:54:52.126 18428 18428 W libc : Access denied finding property "vendor.display.enable_optimal_refresh_rate"
02-14 17:54:55.484 18428 18428 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@6d7ce5d
02-14 17:54:55.486 18428 18450 D Surface : Surface::disconnect
02-14 17:54:55.486 18428 18450 D BufferQueueProducer: [PopupWindow:6b389b1#76931(BLAST Consumer)pid:18428](id:47fc0000009e,api:1,p:18428,c:18428) disconnect: api 1
02-14 17:55:00.363 18428 18428 D VRI[PathPickActivity]: visibilityChanged oldVisibility=true newVisibility=false
02-14 17:55:00.370 18428 18450 D Surface : Surface::disconnect
02-14 17:55:00.371 18428 18450 D BufferQueueProducer: [com.llamalab.automate/com.llamalab.automate.PathPickActivity#76914(BLAST Consumer)pid:18428](id:47fc0000009c,api:1,p:18428,c:18428) disconnect: api 1
02-14 17:55:00.371 18428 18450 D HWUI : endAllActiveAnimators on 0xb400007da4c2ee00 (RippleDrawable) with handle 0xb400007da5666960
2. Action: Clicking 'yes', Output: Triggering 'no' path, Mobile: Motorola (with issue)
02-14 17:55:06.292 18428 18450 D BufferQueueProducer: [com.llamalab.automate/com.llamalab.automate.PathPickActivity#76989(BLAST Consumer)pid:18428](id:47fc000000a0,api:1,p:18428,c:18428) disconnect: api 1
02-14 17:55:08.288 18428 18428 I AbstractPathPickActivity: setPermissions: [READ, WRITE, LIST_ALL, OPEN_DOCUMENT_TREE, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, MANAGE_EXTERNAL_STORAGE]
02-14 17:55:08.318 18428 18450 D Surface : Surface::disconnect
02-14 17:55:08.318 18428 18450 D BufferQueueProducer: [com.llamalab.automate/com.llamalab.automate.PathPickActivity#76989(BLAST Consumer)pid:18428](id:47fc000000a0,api:1,p:18428,c:18428) disconnect: api 1
02-14 17:55:10.716 18428 18428 I AbstractPathPickActivity: setPermissions: [READ, WRITE, LIST_ALL, OPEN_DOCUMENT_TREE, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, MANAGE_EXTERNAL_STORAGE]
02-14 17:55:10.753 18428 18450 D Surface : Surface::disconnect
02-14 17:55:10.753 18428 18450 D BufferQueueProducer: [com.llamalab.automate/com.llamalab.automate.PathPickActivity#76989(BLAST Consumer)pid:18428](id:47fc000000a0,api:1,p:18428,c:18428) disconnect: api 1
02-14 17:55:13.740 18428 18428 I ImeTracker: com.llamalab.automate:ui:459cf827: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser true
02-14 17:55:13.740 18428 18428 D InputMethodManager: showSoftInput() view=com.google.android.material.textfield.TextInputEditText{8884f8b VFED..CL. .F.P..ID 0,0-457,78 #1020003 android:id/edit aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
02-14 17:55:13.763 18428 18428 I AssistStructure: Flattened final assist data: 4352 bytes, containing 2 windows, 31 views
02-14 17:55:13.791 18428 18428 W libc : Access denied finding property "vendor.display.enable_optimal_refresh_rate"
02-14 17:55:13.786 18428 18428 W lab.automate:ui: type=1400 audit(0.0:378124): avc: denied { read } for name="u:object_r:vendor_display_prop:s0" dev="tmpfs" ino=2970 scontext=u:r:untrusted_app:s0:c76,c258,c512,c768 tcontext=u:object_r:vendor_display_prop:s0 tclass=file permissive=0 app=com.llamalab.automate
02-14 17:55:13.815 18428 18428 D InsetsController: show(ime(), fromIme=true)
02-14 17:55:14.041 18428 18428 I ImeTracker: com.llamalab.automate:ui:459cf827: onShown
02-14 17:55:16.693 18428 18428 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@8be15df
02-14 17:55:16.699 18428 18450 D Surface : Surface::disconnect
02-14 17:55:16.699 18428 18450 D BufferQueueProducer: [PopupWindow:754f600#77001(BLAST Consumer)pid:18428](id:47fc000000a1,api:1,p:18428,c:18428) disconnect: api 1
02-14 17:55:26.935 18428 18428 D VRI[PathPickActivity]: visibilityChanged oldVisibility=true newVisibility=false
02-14 17:55:26.938 18428 18450 D Surface : Surface::disconnect
02-14 17:55:26.938 18428 18450 D BufferQueueProducer: [com.llamalab.automate/com.llamalab.automate.PathPickActivity#76989(BLAST Consumer)pid:18428](id:47fc000000a0,api:1,p:18428,c:18428) disconnect: api 1
02-14 17:55:26.938 18428 18450 D HWUI : endAllActiveAnimators on 0xb400007da3584c00 (RippleDrawable) with handle 0xb400007da043d740
3. Action: Clicking 'no', Output: Triggering 'no' path, Mobile: Second device (working)
02-14 17:11:03.845 12819 12819 D callGcSupression: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
02-14 17:11:03.847 12783 18836 D VRI[PathPickActivity]: dispatchAppVisibility visible:false
02-14 17:11:03.847 12783 12783 D VRI[PathPickActivity]: visibilityChanged oldVisibility=true newVisibility=false
02-14 17:11:03.848 12819 12819 D ScrollOptim [SceneManager]: updateCurrentActivity: mCurrentActivityName=null, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
02-14 17:11:03.852 12783 12783 D HWUI : RenderProxy::destroy: this=0xb40000712fac3300, mContext=0xb4000071012413c0
02-14 17:11:03.852 12783 12812 D HWUI : SkiaOpenGLPipeline::setSurface: this=0xb40000725aadd6c0, surface=NULL
02-14 17:11:03.853 12783 12812 D HWUI : endAllActiveAnimators on 0xb400007109c87200 (RippleDrawable) with handle 0xb400007130aad240
02-14 17:11:03.865 12819 12819 D VRI[StartActivityForResultActivity]: onFocusEvent true
02-14 17:11:03.875 12819 12819 D VRI[StartActivityForResultActivity]: onFocusEvent false
02-14 17:11:03.879 12783 12783 D BLASTBufferQueue: [VRI[PathPickActivity][com.llamalab.automate/com.llamalab.automate.PathPickActivity]#111](f:0,a:4) destructor()
02-14 17:11:03.879 12783 12783 D BufferQueueConsumer: [VRI[PathPickActivity][com.llamalab.automate/com.llamalab.automate.PathPickActivity]#111(BLAST Consumer)111](id:31ef0000006f,api:0,p:-1,c:12783) disconnect
02-14 17:11:03.880 12783 12783 D VRI[PathPickActivity]: onFocusEvent false
02-14 17:11:03.880 12783 12783 D callGcSupression: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
02-14 17:11:03.880 12783 12783 D ScrollOptim [SceneManager]: updateCurrentActivity: mCurrentActivityName=com.llamalab.automate.FlowDetailsActivity, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
02-14 17:11:03.880 12783 12783 D ActivityThread: ComponentInfo{com.llamalab.automate/com.llamalab.automate.FlowDetailsActivity} checkFinished=false 4
02-14 17:11:03.880 12783 12783 D ResourcesManagerExtImpl: applyConfigurationToAppReso
4. Action: Clicking 'yes', Output: Triggering 'yes' path, Mobile: Second device (working)
02-14 17:11:21.238 12783 12783 D OplusCursorFeedback: getExtraLeftOffset
02-14 17:11:21.496 12783 12783 V TextView: notifyAutoFillManagerAfterTextChanged
02-14 17:11:21.496 12783 12783 V AutofillManager: notifyValueChanged(1073741824): ignoring on state FINISHED
02-14 17:11:21.505 12783 12783 D OplusCursorFeedback: getExtraCursorWidth
02-14 17:11:21.505 12783 12783 D OplusCursorFeedback: getExtraLeftOffset
02-14 17:11:22.933 12783 12783 V AutofillManager: requestHideFillUi(null): anchor = null
02-14 17:11:22.998 12783 12783 D ViewRootImplExtImpl: the up motion event handled by client, just return
02-14 17:11:23.030 12783 12783 D callGcSupression: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
02-14 17:11:23.030 12783 12783 D ScrollOptim [SceneManager]: updateCurrentActivity: mCurrentActivityName=null, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
02-14 17:11:23.045 12819 12819 D callGcSupression: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
02-14 17:11:23.055 12783 12783 D VRI[PathPickActivity]: onFocusEvent false
02-14 17:11:23.064 12783 16298 D VRI[PathPickActivity]: dispatchAppVisibility visible:false
02-14 17:11:23.066 12819 12819 D ScrollOptim [SceneManager]: updateCurrentActivity: mCurrentActivityName=com.llamalab.automate.StartActivityForResultActivity, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
02-14 17:11:23.066 12819 12819 D ActivityThread: ComponentInfo{com.llamalab.automate/com.llamalab.automate.StartActivityForResultActivity} checkFinished=true 4
02-14 17:11:23.069 12819 12819 D callGcSupression: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
02-14 17:11:23.074 12819 12819 D ScrollOptim [SceneManager]: updateCurrentActivity: mCurrentActivityName=null, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
02-14 17:11:23.079 12783 12783 D VRI[PathPickActivity]: visibilityChanged oldVisibility=true newVisibility=false
02-14 17:11:23.095 12783 12783 D HWUI : RenderProxy::destroy: this=0xb40000712fac5d00, mContext=0xb40000725ab576c0
02-14 17:11:23.095 12783 12812 D HWUI : SkiaOpenGLPipeline::setSurface: this=0xb4000071307eb900, surface=NULL
02-14 17:11:23.096 12783 12812 D HWUI : endAllActiveAnimators on 0xb4000071cd56ee00 (RippleDrawable) with handle 0xb400007253031bc0
Also,
If you could atleast provide me any alternate approach to accomplish my goal. That would be also helpful as of now.
Goal: pop up a web page. User will input a value. This value will passed via a complex js function. And based on that either 'yes' or 'no' paths to be triggered.
Additionally,
I want to show some graph, and based on user preferences, I need to trigger onwards nodes.
Thank you