Skip to content

Commit

Permalink
Fixed : showSnackBarWithRetry Test
Browse files Browse the repository at this point in the history
  • Loading branch information
neeldoshii committed Dec 1, 2024
1 parent a3ca75d commit 3cc4bdc
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3cc4bdc

Please sign in to comment.