mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Fix types after kotlin port of some library classes
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
5cd7b6f853
commit
f07b222a1d
4 changed files with 12 additions and 10 deletions
|
@ -43,13 +43,13 @@ import com.owncloud.android.AbstractIT
|
|||
import com.owncloud.android.R
|
||||
import com.owncloud.android.datamodel.OCFile
|
||||
import com.owncloud.android.lib.resources.shares.OCShare
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.CREATE_PERMISSION_FLAG
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.DELETE_PERMISSION_FLAG
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.MAXIMUM_PERMISSIONS_FOR_FILE
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.NO_PERMISSION
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.READ_PERMISSION_FLAG
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.SHARE_PERMISSION_FLAG
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.Companion.CREATE_PERMISSION_FLAG
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.Companion.DELETE_PERMISSION_FLAG
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.Companion.MAXIMUM_PERMISSIONS_FOR_FILE
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.Companion.MAXIMUM_PERMISSIONS_FOR_FOLDER
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.Companion.NO_PERMISSION
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.Companion.READ_PERMISSION_FLAG
|
||||
import com.owncloud.android.lib.resources.shares.OCShare.Companion.SHARE_PERMISSION_FLAG
|
||||
import com.owncloud.android.lib.resources.shares.ShareType
|
||||
import com.owncloud.android.ui.activity.FileDisplayActivity
|
||||
import com.owncloud.android.ui.fragment.util.SharingMenuHelper
|
||||
|
|
|
@ -38,7 +38,9 @@ object OCShareToOCFileConverter {
|
|||
*/
|
||||
@JvmStatic
|
||||
fun buildOCFilesFromShares(shares: List<OCShare>): List<OCFile> {
|
||||
val groupedByPath: Map<String, List<OCShare>> = shares.groupBy { it.path }
|
||||
val groupedByPath: Map<String, List<OCShare>> = shares
|
||||
.filter { it.path != null }
|
||||
.groupBy { it.path!! }
|
||||
return groupedByPath
|
||||
.map { (path: String, shares: List<OCShare>) -> buildOcFile(path, shares) }
|
||||
.sortedByDescending { it.firstShareTimestamp }
|
||||
|
|
|
@ -146,7 +146,7 @@ class FileDetailsSharingProcessFragment :
|
|||
if (it.containsKey(ARG_SHARE_TYPE)) {
|
||||
shareType = it.getSerializable(ARG_SHARE_TYPE) as ShareType
|
||||
} else if (share != null) {
|
||||
shareType = share!!.shareType
|
||||
shareType = share!!.shareType!!
|
||||
}
|
||||
|
||||
shareProcessStep = it.getInt(ARG_SCREEN_TYPE, SCREEN_TYPE_PERMISSION)
|
||||
|
|
|
@ -8,7 +8,7 @@ buildscript {
|
|||
daggerVersion = "2.45"
|
||||
markwonVersion = "4.6.2"
|
||||
prismVersion = "2.0.0"
|
||||
androidLibraryVersion = "master-SNAPSHOT"
|
||||
androidLibraryVersion = "ac2c4ff57a152675986657e900f0fb03033f060d"
|
||||
mockitoVersion = "4.11.0"
|
||||
mockitoKotlinVersion = "4.1.0"
|
||||
mockkVersion = "1.13.3"
|
||||
|
|
Loading…
Reference in a new issue