@@ -43,7 +43,6 @@ import com.lanzou.cloud.enums.FileSortRule
4343import com.lanzou.cloud.enums.LayoutPosition
4444import com.lanzou.cloud.event.OnFileNavigateListener
4545import com.lanzou.cloud.event.OnUploadListener
46- import com.lanzou.cloud.manager.FilePageManager
4746import com.lanzou.cloud.model.FileInfoModel
4847import com.lanzou.cloud.model.LocalPathModel
4948import com.lanzou.cloud.model.PathModel
@@ -389,14 +388,6 @@ class HomeFragment : EngineNavFragment<FragmentHomeBinding>(R.layout.fragment_ho
389388 leftLp.width = contentWidth
390389 rightLp.width = contentWidth
391390
392- val onFilePageLayoutChangeListener = object : FilePageManager .OnFilePageLayoutChangeListener {
393- override fun onFilePageSelected (position : Int , layoutPosition : LayoutPosition ) {
394- homeViewModel.focusPosition(layoutPosition)
395- requireActivity().invalidateMenu()
396- currentFileFragment.refreshPathSubTitle()
397- }
398- }
399-
400391 initPage(binding.tabLeft, binding.vpLeft, leftPaths)
401392 initPage(binding.tabRight, binding.vpRight, rightPaths)
402393
@@ -520,24 +511,6 @@ class HomeFragment : EngineNavFragment<FragmentHomeBinding>(R.layout.fragment_ho
520511 downloadFiles(currentPath, currentFileFragment.getCheckedFiles())
521512 }
522513 }
523-
524- /* R.id.fab_right -> {
525- val checkedFiles = currentFileFragment.getCheckedFiles()
526- if (checkedFiles.isEmpty()) {
527- toast("选中文件为空")
528- return
529- }
530- if (currentFilePageType == targetFilePageType) {
531- if (currentFilePageType == FilePageType.LOCAL) {
532- moveFiles(currentFileFragment.getCheckedFiles(false))
533- } else {
534- moveFiles(checkedFiles)
535- }
536- return
537- }
538- val currentPath = targetFileFragment.getCurrentPath()
539- downloadFiles(currentPath, checkedFiles)
540- }*/
541514 }
542515 }
543516
0 commit comments