Fixed Storages not loading in FoldersFragment
This commit is contained in:
parent
34c2f6e3d3
commit
cde2e0b229
3 changed files with 3 additions and 5 deletions
|
@ -153,7 +153,7 @@ dependencies {
|
||||||
implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0'
|
implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0'
|
||||||
|
|
||||||
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
|
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
|
||||||
implementation 'org.bitbucket.ijabz:jaudiotagger:2.2.5'
|
implementation 'com.github.AdrienPoupa:jaudiotagger:2.2.3'
|
||||||
implementation 'com.anjlab.android.iab.v3:library:1.1.0'
|
implementation 'com.anjlab.android.iab.v3:library:1.1.0'
|
||||||
implementation 'com.r0adkll:slidableactivity:2.1.0'
|
implementation 'com.r0adkll:slidableactivity:2.1.0'
|
||||||
implementation 'com.heinrichreimersoftware:material-intro:2.0.0'
|
implementation 'com.heinrichreimersoftware:material-intro:2.0.0'
|
||||||
|
|
|
@ -164,12 +164,10 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
|
||||||
|
|
||||||
fun collapsePanel() {
|
fun collapsePanel() {
|
||||||
bottomSheetBehavior.state = STATE_COLLAPSED
|
bottomSheetBehavior.state = STATE_COLLAPSED
|
||||||
setMiniPlayerAlphaProgress(0f)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun expandPanel() {
|
fun expandPanel() {
|
||||||
bottomSheetBehavior.state = STATE_EXPANDED
|
bottomSheetBehavior.state = STATE_EXPANDED
|
||||||
setMiniPlayerAlphaProgress(1f)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setMiniPlayerAlphaProgress(progress: Float) {
|
private fun setMiniPlayerAlphaProgress(progress: Float) {
|
||||||
|
|
|
@ -94,7 +94,7 @@ class FoldersFragment : AbsMainActivityFragment(R.layout.fragment_folder),
|
||||||
return@Comparator lhs.name.compareTo(rhs.name, ignoreCase = true)
|
return@Comparator lhs.name.compareTo(rhs.name, ignoreCase = true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private val storageItems = ArrayList<Storage>()
|
private var storageItems = ArrayList<Storage>()
|
||||||
override fun onCreateView(
|
override fun onCreateView(
|
||||||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
|
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
|
||||||
): View {
|
): View {
|
||||||
|
@ -765,7 +765,7 @@ class FoldersFragment : AbsMainActivityFragment(R.layout.fragment_folder),
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun switchToStorageAdapter() {
|
private fun switchToStorageAdapter() {
|
||||||
FileUtil.listRoots()
|
storageItems = FileUtil.listRoots()
|
||||||
storageAdapter = StorageAdapter(storageItems, this)
|
storageAdapter = StorageAdapter(storageItems, this)
|
||||||
binding.recyclerView.adapter = storageAdapter
|
binding.recyclerView.adapter = storageAdapter
|
||||||
binding.breadCrumbs.clearCrumbs()
|
binding.breadCrumbs.clearCrumbs()
|
||||||
|
|
Loading…
Reference in a new issue