|
|
@ -678,7 +678,7 @@ function NewsDownloader:viewFeedList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
-- Show the list of feeds.
|
|
|
|
-- Show the list of feeds.
|
|
|
|
if #self.kv ~= 0 then
|
|
|
|
if self.kv then
|
|
|
|
UIManager:close(self.kv)
|
|
|
|
UIManager:close(self.kv)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
self.kv = KeyValuePage:new{
|
|
|
|
self.kv = KeyValuePage:new{
|
|
|
@ -693,7 +693,7 @@ function NewsDownloader:viewFeedList()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function NewsDownloader:viewFeedItem(data)
|
|
|
|
function NewsDownloader:viewFeedItem(data)
|
|
|
|
if #self.kv ~= 0 then
|
|
|
|
if self.kv then
|
|
|
|
UIManager:close(self.kv)
|
|
|
|
UIManager:close(self.kv)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
self.kv = KeyValuePage:new{
|
|
|
|
self.kv = KeyValuePage:new{
|
|
|
@ -802,7 +802,7 @@ function NewsDownloader:updateFeedConfig(id, key, value)
|
|
|
|
-- Because this method is called at the menu,
|
|
|
|
-- Because this method is called at the menu,
|
|
|
|
-- we might not have an active view. So this conditional
|
|
|
|
-- we might not have an active view. So this conditional
|
|
|
|
-- statement avoids closing a null reference.
|
|
|
|
-- statement avoids closing a null reference.
|
|
|
|
if #self.kv ~= 0 then
|
|
|
|
if self.kv then
|
|
|
|
UIManager:close(self.kv)
|
|
|
|
UIManager:close(self.kv)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
-- It's possible that we will get a null value.
|
|
|
|
-- It's possible that we will get a null value.
|
|
|
|