Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mikhail Shamburov
Sequenia_test_task
Commits
9ad3829d
Commit
9ad3829d
authored
3 years ago
by
Mikhail Shamburov
Browse files
Options
Download
Email Patches
Plain Diff
FilmsGeneralFragment показывает кастомный snackBar
parent
7db09e43
task/fix_remarks
1 merge request
!67
Поправил замечания
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/sequenia/testtaskapp/ui/fragments/FilmsGeneralFragment.kt
+6
-2
...sequenia/testtaskapp/ui/fragments/FilmsGeneralFragment.kt
with
6 additions
and
2 deletions
+6
-2
app/src/main/java/com/sequenia/testtaskapp/ui/fragments/FilmsGeneralFragment.kt
View file @
9ad3829d
...
...
@@ -10,6 +10,7 @@ import androidx.core.view.isVisible
import
androidx.recyclerview.widget.ConcatAdapter
import
androidx.recyclerview.widget.GridLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
com.google.android.material.snackbar.BaseTransientBottomBar.LENGTH_INDEFINITE
import
com.sequenia.testtaskapp.R
import
com.sequenia.testtaskapp.data.entities.Film
import
com.sequenia.testtaskapp.databinding.FilmsGeneralFramentBinding
...
...
@@ -115,9 +116,12 @@ class FilmsGeneralFragment :
messageHolder
=
DefaultSnackBarHolder
(
viewLifecycleOwner
,
binding
.
root
)
}
messageHolder
?.
showIndefiniteDurationMessage
(
messageHolder
?.
showSnackBar
(
layout
=
R
.
layout
.
info_snackbar_layout
,
layoutInflater
=
layoutInflater
,
message
=
error
,
actionText
=
ResourcesUtils
.
getString
(
R
.
string
.
button_retry
),
actionText
=
getString
(
R
.
string
.
button_retry
),
duration
=
LENGTH_INDEFINITE
,
actionListener
=
object
:
SnackBarActionListener
{
override
fun
onActionClick
()
{
presenter
.
onReloadFilmsButtonClicked
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help