Fix: Cloud Storage not working on Kobo Aura ONE (#3077)

* Fix: Cloud storage opens in landscape mode when display is in portrait mode
Fix: If return is pressed when in root, koreader crashes
This commit is contained in:
Robert
2017-08-13 12:57:19 +02:00
committed by Frans de Jonge
parent 74f3d6e820
commit 27c4e28e84
2 changed files with 10 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
local url = require('socket.url')
local socket = require('socket')
local DocumentRegistry = require("document/documentregistry")
local JSON = require("json")
local http = require('socket.http')
local https = require('ssl.https')
local ltn12 = require('ltn12')
local socket = require('socket')
local url = require('socket.url')
local _ = require("gettext")
local JSON = require("json")
local DocumentRegistry = require("document/documentregistry")
local DropBoxApi = {
}
@@ -95,7 +95,7 @@ function DropBoxApi:listFolder(path, token)
local dropbox_file = {}
local tag, text
local ls_dropbox = self:fetchListFolders(path, token)
if ls_dropbox == nil then return false end
if ls_dropbox == nil or ls_dropbox.entries == nil then return false end
for _, files in ipairs(ls_dropbox.entries) do
text = files.name
tag = files[".tag"]