mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
Fixed : showSnackBarWithRetry Test
This commit is contained in:
parent
a3ca75db25
commit
3cc4bdc9a6
1 changed files with 14 additions and 5 deletions
|
|
@ -222,12 +222,21 @@ class AchievementsFragment : CommonsDaggerSupportFragment(){
|
|||
*/
|
||||
private fun showSnackBarWithRetry(tooManyAchievements: Boolean) {
|
||||
if (tooManyAchievements) {
|
||||
binding.progressBar.visibility = View.GONE
|
||||
showDismissibleSnackBar(
|
||||
requireView().findViewById(android.R.id.content),
|
||||
R.string.achievements_fetch_failed_ultimate_achievement, R.string.retry
|
||||
) { setAchievements() }
|
||||
if (view == null) {
|
||||
return
|
||||
}
|
||||
else {
|
||||
binding.progressBar.visibility = View.GONE
|
||||
showDismissibleSnackBar(
|
||||
requireView().findViewById(android.R.id.content),
|
||||
R.string.achievements_fetch_failed_ultimate_achievement, R.string.retry
|
||||
) { setAchievements() }
|
||||
}
|
||||
|
||||
} else {
|
||||
if (view == null) {
|
||||
return
|
||||
}
|
||||
binding.progressBar.visibility = View.GONE
|
||||
showDismissibleSnackBar(
|
||||
requireView().findViewById(android.R.id.content),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue