Closed pazos closed 2 years ago
Cool. Fixed a couple of codacy warnings too.
And bumped the LargeClass threshold.
I guess it is ok on some projects but doesn't really fit our scope here.
Classes should generally have one responsibility. Large classes can indicate that the class does instead handle multiple responsibilities. Instead of doing many things at once prefer to split up large classes into smaller classes. These smaller classes are then easier to understand and handle less things.
I wonder if there's a way to disable it for MainActivity
but don't want to research ;p
Intended to fix https://github.com/koreader/koreader/issues/9178
Since I needed to write a new function for generic sendText I implemented @uroybd request at https://github.com/koreader/koreader/pull/9153#issuecomment-1143857139
Needs a minor change in the frontend:
After that the intended way of calling the function would be something like:
The "reason" is shown on older android versions (prior to the quick share sheet feature) and ignored on newer ones. See screenshots:
This change is