pachli / pachli-android

The Pachli Android app
https://pachli.app
GNU General Public License v3.0
132 stars 15 forks source link

refactor: Ensure copying text experience is consistent #1115

Closed nikclayton closed 5 days ago

nikclayton commented 5 days ago

Previous code was inconsistent about whether or not a notification toast was shown after copying text (contrary to platform guidelines), and there was some code duplication.

Fix this with a new ClipboardUseCase with a copyTextTo method that handles copying text to the clipboard and showing a message afterwards (depending on platform level).