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

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

Open
DrHowdyDoo opened this issue Mar 15, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@DrHowdyDoo
Copy link

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.

@AmrDeveloper AmrDeveloper added the bug Something isn't working label Mar 15, 2024
@AmrDeveloper
Copy link
Owner

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

@AmrDeveloper
Copy link
Owner

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

@DrHowdyDoo
Copy link
Author

I am not using any FileTreeFragment .

@AmrDeveloper
Copy link
Owner

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

@DrHowdyDoo
Copy link
Author

DrHowdyDoo commented Mar 16, 2024

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

@AmrDeveloper
Copy link
Owner

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
Copy link
Owner

@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

@DrHowdyDoo
Copy link
Author

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

@DrHowdyDoo
Copy link
Author

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

@AmrDeveloper
Copy link
Owner

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

@DrHowdyDoo
Copy link
Author

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

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

No branches or pull requests

2 participants