mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add notification widget and used it in readerbookmark
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
require "ui/notification"
|
||||
|
||||
ReaderBookmark = InputContainer:new{
|
||||
bm_menu_title = "Bookmarks",
|
||||
bookmarks = nil,
|
||||
@@ -51,7 +53,7 @@ function ReaderBookmark:onAddBookmark()
|
||||
if not self:addBookmark(pn_or_xp) then
|
||||
noti_text = "Page already marked!"
|
||||
end
|
||||
UIManager:show(InfoMessage:new{
|
||||
UIManager:show(Notification:new{
|
||||
text = noti_text,
|
||||
timeout = 3
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user