mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Improve text for receiving shared images (#2266)
This commit is contained in:
		
							parent
							
								
									465e232c67
								
							
						
					
					
						commit
						be98a56ba0
					
				
					 6 changed files with 13 additions and 9 deletions
				
			
		|  | @ -98,6 +98,7 @@ public class UploadActivity extends AuthenticatedActivity implements UploadView, | |||
|     @BindView(R.id.bottom_card_add_desc) Button bottomCardAddDescription; | ||||
|     @BindView(R.id.categories_subtitle) TextView categoriesSubtitle; | ||||
|     @BindView(R.id.license_subtitle) TextView licenseSubtitle; | ||||
|     @BindView(R.id.please_wait_text_view) TextView pleaseWaitTextView; | ||||
| 
 | ||||
|     //Right Card | ||||
|     @BindView(R.id.right_card) CardView rightCard; | ||||
|  | @ -312,7 +313,7 @@ public class UploadActivity extends AuthenticatedActivity implements UploadView, | |||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void setBottomCardVisibility(@UploadPage int page) { | ||||
|     public void setBottomCardVisibility(@UploadPage int page, int uploadCount) { | ||||
|         if (page == TITLE_CARD) { | ||||
|             viewFlipper.setDisplayedChild(0); | ||||
|         } else if (page == CATEGORIES) { | ||||
|  | @ -322,6 +323,7 @@ public class UploadActivity extends AuthenticatedActivity implements UploadView, | |||
|             dismissKeyboard(); | ||||
|         } else if (page == PLEASE_WAIT) { | ||||
|             viewFlipper.setDisplayedChild(3); | ||||
|             pleaseWaitTextView.setText(getResources().getQuantityText(R.plurals.receiving_shared_content, uploadCount)); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
|  | @ -412,7 +412,7 @@ public class UploadPresenter { | |||
|             view.setTopCardVisibility(false); | ||||
|             view.setRightCardVisibility(false); | ||||
|         } | ||||
|         view.setBottomCardVisibility(currentPage); | ||||
|         view.setBottomCardVisibility(currentPage, uploadCount); | ||||
|     } | ||||
| 
 | ||||
|     //endregion | ||||
|  |  | |||
|  | @ -52,7 +52,7 @@ public interface UploadView { | |||
| 
 | ||||
|     void setBottomCardVisibility(boolean visible); | ||||
| 
 | ||||
|     void setBottomCardVisibility(@UploadPage int page); | ||||
|     void setBottomCardVisibility(@UploadPage int page, int uploadCount); | ||||
| 
 | ||||
|     void updateRightCardContent(boolean gpsPresent); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vivek Maskara
						Vivek Maskara