Skip to content

Commit

Permalink
refactor: changes in image preview snackbar
Browse files Browse the repository at this point in the history
  • Loading branch information
joragua committed Oct 3, 2024
1 parent dd9538c commit f9a40b0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,9 @@ class PreviewImageFragment : FileFragment() {

private fun showSnackbarMessage(){
val snackbar = Snackbar.make(requireView(), R.string.sync_file_nothing_to_do_msg, Snackbar.LENGTH_LONG)
val snackbarView = snackbar.view
val params = snackbarView.layoutParams as ViewGroup.MarginLayoutParams
val params = snackbar.view.layoutParams as ViewGroup.MarginLayoutParams
params.setMargins(params.leftMargin, params.topMargin, params.rightMargin, 100)
snackbarView.layoutParams = params
snackbar.view.layoutParams = params
snackbar.show()
}

Expand Down

0 comments on commit f9a40b0

Please sign in to comment.