mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +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) { |     private fun showSnackBarWithRetry(tooManyAchievements: Boolean) { | ||||||
|         if (tooManyAchievements) { |         if (tooManyAchievements) { | ||||||
|             binding.progressBar.visibility = View.GONE |             if (view == null) { | ||||||
|             showDismissibleSnackBar( |                 return | ||||||
|                 requireView().findViewById(android.R.id.content), |             } | ||||||
|                 R.string.achievements_fetch_failed_ultimate_achievement, R.string.retry |             else { | ||||||
|             ) { setAchievements() } |                 binding.progressBar.visibility = View.GONE | ||||||
|  |                 showDismissibleSnackBar( | ||||||
|  |                     requireView().findViewById(android.R.id.content), | ||||||
|  |                     R.string.achievements_fetch_failed_ultimate_achievement, R.string.retry | ||||||
|  |                 ) { setAchievements() } | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|         } else { |         } else { | ||||||
|  |             if (view == null) { | ||||||
|  |                 return | ||||||
|  |             } | ||||||
|             binding.progressBar.visibility = View.GONE |             binding.progressBar.visibility = View.GONE | ||||||
|             showDismissibleSnackBar( |             showDismissibleSnackBar( | ||||||
|                 requireView().findViewById(android.R.id.content), |                 requireView().findViewById(android.R.id.content), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neel Doshi
						Neel Doshi