mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	fix typos in UploadWorker.kt
This commit is contained in:
		
							parent
							
								
									c8e9232508
								
							
						
					
					
						commit
						095f9ddfca
					
				
					 1 changed files with 11 additions and 11 deletions
				
			
		|  | @ -533,8 +533,8 @@ class UploadWorker( | ||||||
|     private fun showSuccessNotification(contribution: Contribution) { |     private fun showSuccessNotification(contribution: Contribution) { | ||||||
|         val displayTitle = contribution.media.displayTitle |         val displayTitle = contribution.media.displayTitle | ||||||
|         contribution.state=Contribution.STATE_COMPLETED |         contribution.state=Contribution.STATE_COMPLETED | ||||||
|         curentNotification.setContentIntent(getPendingIntent(MainActivity::class.java)) |         currentNotification.setContentIntent(getPendingIntent(MainActivity::class.java)) | ||||||
|         curentNotification.setContentTitle( |         currentNotification.setContentTitle( | ||||||
|             appContext.getString( |             appContext.getString( | ||||||
|                 R.string.upload_completed_notification_title, |                 R.string.upload_completed_notification_title, | ||||||
|                 displayTitle |                 displayTitle | ||||||
|  | @ -556,8 +556,8 @@ class UploadWorker( | ||||||
|     @SuppressLint("StringFormatInvalid") |     @SuppressLint("StringFormatInvalid") | ||||||
|     private fun showFailedNotification(contribution: Contribution) { |     private fun showFailedNotification(contribution: Contribution) { | ||||||
|         val displayTitle = contribution.media.displayTitle |         val displayTitle = contribution.media.displayTitle | ||||||
|         curentNotification.setContentIntent(getPendingIntent(UploadProgressActivity::class.java)) |         currentNotification.setContentIntent(getPendingIntent(UploadProgressActivity::class.java)) | ||||||
|         curentNotification.setContentTitle( |         currentNotification.setContentTitle( | ||||||
|             appContext.getString( |             appContext.getString( | ||||||
|                 R.string.upload_failed_notification_title, |                 R.string.upload_failed_notification_title, | ||||||
|                 displayTitle |                 displayTitle | ||||||
|  | @ -595,7 +595,7 @@ class UploadWorker( | ||||||
|     @SuppressLint("StringFormatInvalid") |     @SuppressLint("StringFormatInvalid") | ||||||
|     private fun showErrorNotification(contribution: Contribution) { |     private fun showErrorNotification(contribution: Contribution) { | ||||||
|         val displayTitle = contribution.media.displayTitle |         val displayTitle = contribution.media.displayTitle | ||||||
|         curentNotification.setContentTitle( |         currentNotification.setContentTitle( | ||||||
|             appContext.getString( |             appContext.getString( | ||||||
|                 R.string.upload_failed_notification_title, |                 R.string.upload_failed_notification_title, | ||||||
|                 displayTitle |                 displayTitle | ||||||
|  | @ -606,7 +606,7 @@ class UploadWorker( | ||||||
|             .setOngoing(false) |             .setOngoing(false) | ||||||
|         notificationManager?.notify( |         notificationManager?.notify( | ||||||
|             currentNotificationTag, currentNotificationID, |             currentNotificationTag, currentNotificationID, | ||||||
|             curentNotification.build() |             currentNotification.build() | ||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | @ -617,8 +617,8 @@ class UploadWorker( | ||||||
|     private fun showPausedNotification(contribution: Contribution) { |     private fun showPausedNotification(contribution: Contribution) { | ||||||
|         val displayTitle = contribution.media.displayTitle |         val displayTitle = contribution.media.displayTitle | ||||||
|        |        | ||||||
|         curentNotification.setContentIntent(getPendingIntent(UploadProgressActivity::class.java)) |         currentNotification.setContentIntent(getPendingIntent(UploadProgressActivity::class.java)) | ||||||
|         curentNotification.setContentTitle( |         currentNotification.setContentTitle( | ||||||
|             appContext.getString( |             appContext.getString( | ||||||
|                 R.string.upload_paused_notification_title, |                 R.string.upload_paused_notification_title, | ||||||
|                 displayTitle |                 displayTitle | ||||||
|  | @ -639,8 +639,8 @@ class UploadWorker( | ||||||
|      */ |      */ | ||||||
|     private fun showCancelledNotification(contribution: Contribution) { |     private fun showCancelledNotification(contribution: Contribution) { | ||||||
|         val displayTitle = contribution.media.displayTitle |         val displayTitle = contribution.media.displayTitle | ||||||
|         curentNotification.setContentIntent(getPendingIntent(UploadProgressActivity::class.java)) |         currentNotification.setContentIntent(getPendingIntent(UploadProgressActivity::class.java)) | ||||||
|         curentNotification.setContentTitle( |         currentNotification.setContentTitle( | ||||||
|             displayTitle |             displayTitle | ||||||
|         ) |         ) | ||||||
|             .setContentText("Upload has been cancelled!") |             .setContentText("Upload has been cancelled!") | ||||||
|  | @ -648,7 +648,7 @@ class UploadWorker( | ||||||
|             .setOngoing(false) |             .setOngoing(false) | ||||||
|         notificationManager!!.notify( |         notificationManager!!.notify( | ||||||
|             currentNotificationTag, currentNotificationID, |             currentNotificationTag, currentNotificationID, | ||||||
|             curentNotification.build() |             currentNotification.build() | ||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rohit Verma
						Rohit Verma