Fix issue 534

@mrfesol, this pull request fix https://github.com/owncloud/android/issues/534