update commons to 3.17.23
This commit is contained in:
parent
790943c855
commit
fd655b2ed6
7 changed files with 10 additions and 15 deletions
|
@ -45,7 +45,7 @@ ext {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:3.15.11'
|
||||
implementation 'com.simplemobiletools:commons:3.17.23'
|
||||
implementation 'com.squareup:otto:1.3.8'
|
||||
implementation 'com.facebook.stetho:stetho:1.5.0'
|
||||
|
||||
|
|
|
@ -66,7 +66,6 @@ class MainActivity : SimpleActivity(), SongListListener {
|
|||
private var actionbarSize = 0
|
||||
private var topArtHeight = 0
|
||||
|
||||
private var storedUseEnglish = false
|
||||
private var storedTextColor = 0
|
||||
private var storedShowAlbumCover = true
|
||||
|
||||
|
@ -126,11 +125,6 @@ class MainActivity : SimpleActivity(), SongListListener {
|
|||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
if (storedUseEnglish != config.useEnglish) {
|
||||
restartActivity()
|
||||
return
|
||||
}
|
||||
|
||||
if (storedTextColor != config.textColor) {
|
||||
updateAlbumCover()
|
||||
}
|
||||
|
@ -221,7 +215,6 @@ class MainActivity : SimpleActivity(), SongListListener {
|
|||
|
||||
private fun storeStateVariables() {
|
||||
config.apply {
|
||||
storedUseEnglish = useEnglish
|
||||
storedTextColor = textColor
|
||||
storedShowAlbumCover = showAlbumCover
|
||||
}
|
||||
|
@ -453,7 +446,7 @@ class MainActivity : SimpleActivity(), SongListListener {
|
|||
repeat_btn.applyColorFilter(if (config.repeatSong) getAdjustedPrimaryColor() else config.textColor)
|
||||
repeat_btn.alpha = if (config.repeatSong) 1f else LOWER_ALPHA
|
||||
|
||||
getSongsAdapter()?.textColor = textColor
|
||||
getSongsAdapter()?.updateTextColor(textColor)
|
||||
songs_fastscroller.updatePrimaryColor()
|
||||
}
|
||||
|
||||
|
@ -490,7 +483,6 @@ class MainActivity : SimpleActivity(), SongListListener {
|
|||
SongAdapter(this@MainActivity, songs, this, artView!!, songs_list, songs_fastscroller) {
|
||||
songPicked(getSongIndex(it as Song))
|
||||
}.apply {
|
||||
setupDragListener(true)
|
||||
isThirdPartyIntent = this@MainActivity.isThirdPartyIntent
|
||||
addVerticalDividers(true)
|
||||
songs_list.adapter = this
|
||||
|
|
|
@ -26,7 +26,6 @@ class PlaylistsActivity : SimpleActivity(), RefreshPlaylistsListener {
|
|||
getPlaylists()
|
||||
playlistChanged((it as Playlist).id)
|
||||
}.apply {
|
||||
setupDragListener(true)
|
||||
playlists_list.adapter = this
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ import android.os.Bundle
|
|||
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
||||
import com.simplemobiletools.commons.extensions.beVisibleIf
|
||||
import com.simplemobiletools.commons.extensions.updateTextColors
|
||||
import com.simplemobiletools.commons.extensions.useEnglishToggled
|
||||
import com.simplemobiletools.commons.models.RadioItem
|
||||
import com.simplemobiletools.musicplayer.R
|
||||
import com.simplemobiletools.musicplayer.extensions.config
|
||||
|
@ -50,7 +49,7 @@ class SettingsActivity : SimpleActivity() {
|
|||
settings_use_english_holder.setOnClickListener {
|
||||
settings_use_english.toggle()
|
||||
config.useEnglish = settings_use_english.isChecked
|
||||
useEnglishToggled()
|
||||
System.exit(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,6 +22,10 @@ import java.util.*
|
|||
class PlaylistsAdapter(activity: SimpleActivity, val playlists: ArrayList<Playlist>, val listener: RefreshPlaylistsListener?, recyclerView: MyRecyclerView,
|
||||
itemClick: (Any) -> Unit) : MyRecyclerViewAdapter(activity, recyclerView, null, itemClick) {
|
||||
|
||||
init {
|
||||
setupDragListener(true)
|
||||
}
|
||||
|
||||
override fun getActionMenuId() = R.menu.cab_playlists
|
||||
|
||||
override fun prepareItemSelection(view: View) {}
|
||||
|
|
|
@ -50,6 +50,7 @@ class SongAdapter(activity: SimpleActivity, var songs: ArrayList<Song>, val list
|
|||
var isThirdPartyIntent = false
|
||||
|
||||
init {
|
||||
setupDragListener(true)
|
||||
positionOffset = LIST_HEADERS_COUNT
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.2.21'
|
||||
ext.kotlin_version = '1.2.31'
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue