Skip to content

Commit

Permalink
[Refactor] Remove now redundant SAM constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Aug 6, 2023
1 parent db5e9f4 commit 9fca17b
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import androidx.lifecycle.LifecycleOwner
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import com.google.android.material.appbar.AppBarLayout.OnOffsetChangedListener
import com.leinardi.android.speeddial.SpeedDialView
import java8.nio.file.Path
import java8.nio.file.Paths
Expand Down Expand Up @@ -197,14 +196,12 @@ class FileListFragment : Fragment(), BreadcrumbLayout.Listener, FileListAdapter.
binding.persistentBarLayout, binding.bottomBarLayout, binding.bottomToolbar
)
val contentLayoutInitialPaddingBottom = binding.contentLayout.paddingBottom
binding.appBarLayout.addOnOffsetChangedListener(
OnOffsetChangedListener { _, verticalOffset ->
binding.contentLayout.updatePaddingRelative(
bottom = contentLayoutInitialPaddingBottom +
binding.appBarLayout.totalScrollRange + verticalOffset
)
}
)
binding.appBarLayout.addOnOffsetChangedListener { _, verticalOffset ->
binding.contentLayout.updatePaddingRelative(
bottom = contentLayoutInitialPaddingBottom +
binding.appBarLayout.totalScrollRange + verticalOffset
)
}
binding.appBarLayout.syncBackgroundElevationTo(binding.overlayToolbar)
binding.breadcrumbLayout.setListener(this)
if (!(activity.hasSw600Dp && activity.isOrientationLandscape)) {
Expand Down

0 comments on commit 9fca17b

Please sign in to comment.