update commons to 3.17.16

This commit is contained in:
tibbi 2018-03-31 10:43:18 +02:00
parent 308755c5ba
commit 73afe2caff
8 changed files with 11 additions and 7 deletions

View File

@ -45,7 +45,7 @@ ext {
}
dependencies {
implementation 'com.simplemobiletools:commons:3.13.8'
implementation 'com.simplemobiletools:commons:3.17.16'
implementation files('../libs/RootTools.jar')

View File

@ -36,7 +36,6 @@ class FavoritesActivity : SimpleActivity(), RefreshRecyclerViewListener {
}
ManageFavoritesAdapter(this, favorites, this, manage_favorites_list) { }.apply {
setupDragListener(true)
manage_favorites_list.adapter = this
}
}

View File

@ -271,7 +271,7 @@ class MainActivity : SimpleActivity() {
FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons),
FAQItem(R.string.faq_3_title_commons, R.string.faq_3_text_commons))
startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_MULTISELECT or LICENSE_GLIDE or LICENSE_PATTERN or LICENSE_REPRINT,
startAboutActivity(R.string.app_name, LICENSE_MULTISELECT or LICENSE_GLIDE or LICENSE_PATTERN or LICENSE_REPRINT,
BuildConfig.VERSION_NAME, faqItems)
}

View File

@ -49,6 +49,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
private val hasOTGConnected = activity.hasOTGConnected()
init {
setupDragListener(true)
initDrawables()
}
@ -452,10 +453,10 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
return selectedMedia
}
fun updateItems(newItems: MutableList<FileDirItem>) {
fun updateItems(newItems: ArrayList<FileDirItem>) {
if (newItems.hashCode() != currentItemsHash) {
currentItemsHash = newItems.hashCode()
fileDirItems = newItems
fileDirItems = newItems.clone() as ArrayList<FileDirItem>
notifyDataSetChanged()
finishActMode()
}

View File

@ -16,6 +16,10 @@ class ManageFavoritesAdapter(activity: BaseSimpleActivity, var favorites: ArrayL
private val config = activity.config
init {
setupDragListener(true)
}
override fun getActionMenuId() = R.menu.cab_remove_only
override fun prepareActionMode(menu: Menu) {}

View File

@ -6,6 +6,7 @@ import android.net.Uri
import android.support.v4.content.FileProvider
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.isNougatPlus
import com.simplemobiletools.filemanager.BuildConfig
import java.io.File
import java.util.*

View File

@ -150,7 +150,6 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
ItemsAdapter(activity as SimpleActivity, storedItems, this@ItemsFragment, items_list, isPickMultipleIntent, items_fastscroller) {
itemClicked(it as FileDirItem)
}.apply {
setupDragListener(true)
addVerticalDividers(true)
items_list.adapter = this
}

View File

@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong