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
Highlights share #9153
Highlights share #9153
Conversation
@uroybd: made a few changes. Mostly:
|
It looks much cleaner now. I've also made the changes you've asked. Should I add the same functionality for text, JSON, and html? |
Also, I need some help from luajit part. The
|
Both are doable but not for this PR. Also the signature of share text is different https://github.com/koreader/android-luajit-launcher/blob/master/app/src/main/java/org/koreader/launcher/extensions/ActivityExtensions.kt#L258, because it was designed to deliver text to specific packages using specific actions, so something like that requires a reestructure I'm not willing to do in short run. |
Sure, go ahead. Also you can test them on the emulator with diff --git a/frontend/device/sdl/device.lua b/frontend/device/sdl/device.lua
index cef65e08..8b86498a 100644
--- a/frontend/device/sdl/device.lua
+++ b/frontend/device/sdl/device.lua
@@ -122,6 +122,10 @@ local Emulator = Device:new{
canPowerOff = yes,
canReboot = yes,
canSuspend = yes,
+ canShareText = yes,
+ doShareText = function(self, text)
+ logger.info("sharing text", text)
+ end,
} |
Instead of |
Removed WIP. |
Agree on the logic as it is now, not on the names. The new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for renaming a couple of methods and removing the timestamp the rest looks quite good and it is almost ready for prime time :)
👍
Renaming and other changes based on the review are done. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR enables users to share exported highlights on Android.
This change is