mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	fixed AchievementFragment Unit Test
This commit is contained in:
		
							parent
							
								
									ba54e010d2
								
							
						
					
					
						commit
						293cbebbba
					
				
					 2 changed files with 8 additions and 8 deletions
				
			
		|  | @ -136,7 +136,7 @@ class AchievementsFragment : CommonsDaggerSupportFragment(){ | ||||||
|     /** |     /** | ||||||
|      * To invoke the AlertDialog on clicking info button |      * To invoke the AlertDialog on clicking info button | ||||||
|      */ |      */ | ||||||
|     protected fun showInfoDialog() { |     fun showInfoDialog() { | ||||||
|         launchAlert( |         launchAlert( | ||||||
|             resources.getString(R.string.Achievements), |             resources.getString(R.string.Achievements), | ||||||
|             resources.getString(R.string.achievements_info_message) |             resources.getString(R.string.achievements_info_message) | ||||||
|  | @ -391,7 +391,7 @@ class AchievementsFragment : CommonsDaggerSupportFragment(){ | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     protected fun showUploadInfo() { |     fun showUploadInfo() { | ||||||
|         launchAlertWithHelpLink( |         launchAlertWithHelpLink( | ||||||
|             resources.getString(R.string.images_uploaded), |             resources.getString(R.string.images_uploaded), | ||||||
|             resources.getString(R.string.images_uploaded_explanation), |             resources.getString(R.string.images_uploaded_explanation), | ||||||
|  | @ -399,7 +399,7 @@ class AchievementsFragment : CommonsDaggerSupportFragment(){ | ||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     protected fun showRevertedInfo() { |     fun showRevertedInfo() { | ||||||
|         launchAlertWithHelpLink( |         launchAlertWithHelpLink( | ||||||
|             resources.getString(R.string.image_reverts), |             resources.getString(R.string.image_reverts), | ||||||
|             resources.getString(R.string.images_reverted_explanation), |             resources.getString(R.string.images_reverted_explanation), | ||||||
|  | @ -407,7 +407,7 @@ class AchievementsFragment : CommonsDaggerSupportFragment(){ | ||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     protected fun showUsedByWikiInfo() { |     fun showUsedByWikiInfo() { | ||||||
|         launchAlertWithHelpLink( |         launchAlertWithHelpLink( | ||||||
|             resources.getString(R.string.images_used_by_wiki), |             resources.getString(R.string.images_used_by_wiki), | ||||||
|             resources.getString(R.string.images_used_explanation), |             resources.getString(R.string.images_used_explanation), | ||||||
|  | @ -415,7 +415,7 @@ class AchievementsFragment : CommonsDaggerSupportFragment(){ | ||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     protected fun showImagesViaNearbyInfo() { |     fun showImagesViaNearbyInfo() { | ||||||
|         launchAlertWithHelpLink( |         launchAlertWithHelpLink( | ||||||
|             resources.getString(R.string.statistics_wikidata_edits), |             resources.getString(R.string.statistics_wikidata_edits), | ||||||
|             resources.getString(R.string.images_via_nearby_explanation), |             resources.getString(R.string.images_via_nearby_explanation), | ||||||
|  | @ -423,7 +423,7 @@ class AchievementsFragment : CommonsDaggerSupportFragment(){ | ||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     protected fun showFeaturedImagesInfo() { |     fun showFeaturedImagesInfo() { | ||||||
|         launchAlertWithHelpLink( |         launchAlertWithHelpLink( | ||||||
|             resources.getString(R.string.statistics_featured), |             resources.getString(R.string.statistics_featured), | ||||||
|             resources.getString(R.string.images_featured_explanation), |             resources.getString(R.string.images_featured_explanation), | ||||||
|  | @ -431,7 +431,7 @@ class AchievementsFragment : CommonsDaggerSupportFragment(){ | ||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     protected fun showThanksReceivedInfo() { |     fun showThanksReceivedInfo() { | ||||||
|         launchAlertWithHelpLink( |         launchAlertWithHelpLink( | ||||||
|             resources.getString(R.string.statistics_thanks), |             resources.getString(R.string.statistics_thanks), | ||||||
|             resources.getString(R.string.thanks_received_explanation), |             resources.getString(R.string.thanks_received_explanation), | ||||||
|  |  | ||||||
|  | @ -79,7 +79,7 @@ class AchievementsFragmentUnitTests { | ||||||
|         fragmentTransaction.commitNowAllowingStateLoss() |         fragmentTransaction.commitNowAllowingStateLoss() | ||||||
| 
 | 
 | ||||||
|         layoutInflater = LayoutInflater.from(activity) |         layoutInflater = LayoutInflater.from(activity) | ||||||
|         view = fragment.onCreateView(layoutInflater, activity.findViewById(R.id.container), null)!! |         view = fragment.onCreateView(layoutInflater, activity.findViewById(R.id.container), null) | ||||||
| 
 | 
 | ||||||
|         achievements = Achievements(0, 0, 0, 0, 0, 0, 0) |         achievements = Achievements(0, 0, 0, 0, 0, 0, 0) | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neel Doshi
						Neel Doshi