TreeView icon indicating copy to clipboard operation
TreeView copied to clipboard

Initially tree is expanded but isExpanded() is set to false leading to a minor bug

Open DrHowdyDoo opened this issue 1 year ago • 11 comments

Describe the bug When the tree is shown for the first time, it is all expanded but the treeNode class has a false set in isExpanded variable, because of this when you tap on the node it expands again replicating it's childrens.

To Reproduce Steps to reproduce the behavior:

  1. Just create a Tree with atleast 3 child'
  2. Expand the First Node
  3. you will see duplicate child node

Expected behavior Either the tree should be collapsed from the start or isExpanded should be set to true.

Screenshots Screenshot_20240315-171009(marked)

Screenshot_20240315-171001

Smartphone (please complete the following information):

  • Device: Nothing Phone 1
  • OS: Android (Nothing OS)
  • Version: 14 (2.5.3)

Additional context Add any other context about the problem here.

DrHowdyDoo avatar Mar 15 '24 11:03 DrHowdyDoo

@DrHowdyDoo Thank you for reporting i will check and fix it

AmrDeveloper avatar Mar 15 '24 14:03 AmrDeveloper

Hello @DrHowdyDoo,

I am trying to reproduce it with FileTreeFragment example using

treeViewAdapter.expandNode(javaDirectory);

Can you please write simple code to reproduce it or write instruction to used it in FileTreeFragment

AmrDeveloper avatar Mar 16 '24 11:03 AmrDeveloper

I am not using any FileTreeFragment .

DrHowdyDoo avatar Mar 16 '24 12:03 DrHowdyDoo

I know i mean we need to create snippet of code to reproduce tge issue

AmrDeveloper avatar Mar 16 '24 12:03 AmrDeveloper

can you see it in my github project ?? it's in progress and i am facing couple of bugs in the treeview. Like duplication of child views and expand all does not expand all child nodes if some were collapsed before expanding all My GitHub Repo

DrHowdyDoo avatar Mar 16 '24 12:03 DrHowdyDoo

can you see it in my github project ?? it's in progress and i am facing couple of bugs in the treeview. Like duplication of child views and expand all does not expand all child nodes if some were collapsed before expanding all My GitHub Repo

Good i will check it and fix them

AmrDeveloper avatar Mar 16 '24 15:03 AmrDeveloper

@DrHowdyDoo Your idea is cool i installed the app but i clicked on many apps components and the app show no tree or info.

Any tips on how to use it to debug the issue

Thanks

AmrDeveloper avatar Mar 23 '24 19:03 AmrDeveloper

You have to set the app as digtal assistant and then invoke it like you do with google assistant to make it work.

DrHowdyDoo avatar Mar 24 '24 04:03 DrHowdyDoo

if it does not show anything remove it as your digital assistant and then set it again

DrHowdyDoo avatar Mar 24 '24 04:03 DrHowdyDoo

It's not working on my real device, i will try emulator

AmrDeveloper avatar Mar 25 '24 11:03 AmrDeveloper

Try installing the apk from the repo releases section. i have put layout_inspector_v1.0 apk there.

DrHowdyDoo avatar Mar 25 '24 11:03 DrHowdyDoo