sharry | Sharry is a self-hosted file sharing web application | File Sharing library
kandi X-RAY | sharry Summary
kandi X-RAY | sharry Summary
Sharry allows to share files with others in a simple way. It is a self-hosted web application. The basic concept is: upload files and get a url back that can then be shared.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sharry
sharry Key Features
sharry Examples and Code Snippets
Community Discussions
Trending Discussions on sharry
QUESTION
ANSWER
Answered 2021-Aug-04 at 13:25You are using the click listener of the list item to add more click listeners to its children. So the first time you click it, the children don't have listeners yet and won't do anything. It is also error prone that a parent and its children both have click listeners, because it's undefined what will happen if you change the click listener as you are clicking it.
Instead, you should define your interface in the adapter to handle both types of clicks. In the ViewHolder, set click listeners only on the relevant children to be clicked.
Also, I think you're misusing lateinit
. I would make the property nullable. And it is redundant to have a setter function for a property's value.
If you make the ViewHolder class inner
, then you don't have to pass instances of the listener to the view holder instances, which will cause problems if you ever change the Adapter's listener.
Finally, personally I think the listener should return the list item, not the specific view and position in the list. Those are implementation details that the outer class doesn't need to know about.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sharry
Download provided zip file and run the script in bin/, as described here.
Using the nix package manager as described here. A a NixOS module is available, too.
Using Docker, as described here.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page