mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Merge remote-tracking branch 'refs/remotes/origin/2.8-release'
This commit is contained in:
		
						commit
						54246fda6b
					
				
					 3 changed files with 18 additions and 10 deletions
				
			
		|  | @ -276,17 +276,25 @@ public  class       ContributionsActivity | |||
|                 .getUploadCount(sessionManager.getCurrentAccount().name) | ||||
|                 .subscribeOn(Schedulers.io()) | ||||
|                 .observeOn(AndroidSchedulers.mainThread()) | ||||
|                 .subscribe( | ||||
|                         uploadCount -> getSupportActionBar().setSubtitle(getResources() | ||||
|                                 .getQuantityString(R.plurals.contributions_subtitle, | ||||
|                                         uploadCount, uploadCount)), | ||||
|                 .subscribe(this::displayUploadCount, | ||||
|                         t -> Timber.e(t, "Fetching upload count failed") | ||||
|                 )); | ||||
|     } | ||||
| 
 | ||||
|     public void betaSetUploadCount(int betaUploadCount){ | ||||
|     private void displayUploadCount(Integer uploadCount) { | ||||
|         if (isFinishing() | ||||
|                 || getSupportActionBar() == null | ||||
|                 || getResources() == null) { | ||||
|             return; | ||||
|         } | ||||
|          | ||||
|         getSupportActionBar().setSubtitle(getResources() | ||||
|                 .getQuantityString(R.plurals.contributions_subtitle, betaUploadCount, betaUploadCount)); | ||||
|                 .getQuantityString(R.plurals.contributions_subtitle, | ||||
|                         uploadCount, uploadCount)); | ||||
|     } | ||||
| 
 | ||||
|     public void betaSetUploadCount(int betaUploadCount) { | ||||
|         displayUploadCount(betaUploadCount); | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan