forked from mirrors/Fedilab
		
	Display translate icon only when language is different
This commit is contained in:
		
							parent
							
								
									d7a2a6b855
								
							
						
					
					
						commit
						611c22a5c8
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		|  | @ -630,7 +630,11 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> | ||||||
|                 holder.binding.actionButtonBookmark.setVisibility(View.GONE); |                 holder.binding.actionButtonBookmark.setVisibility(View.GONE); | ||||||
|             } |             } | ||||||
|             if (displayTranslate) { |             if (displayTranslate) { | ||||||
|  |                 if (statusToDeal.language != null && statusToDeal.language.trim().length() > 0 && statusToDeal.language.equalsIgnoreCase(MyTransL.getLocale())) { | ||||||
|  |                     holder.binding.actionButtonTranslate.setVisibility(View.GONE); | ||||||
|  |                 } else { | ||||||
|                     holder.binding.actionButtonTranslate.setVisibility(View.VISIBLE); |                     holder.binding.actionButtonTranslate.setVisibility(View.VISIBLE); | ||||||
|  |                 } | ||||||
|             } else { |             } else { | ||||||
|                 holder.binding.actionButtonTranslate.setVisibility(View.GONE); |                 holder.binding.actionButtonTranslate.setVisibility(View.GONE); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|  | @ -1,6 +1,9 @@ | ||||||
| Added: | Added: | ||||||
| - Post random quotes | - Post random quotes | ||||||
| 
 | 
 | ||||||
|  | Changed: | ||||||
|  | - Display translate button only when language is different | ||||||
|  | 
 | ||||||
| Fixed: | Fixed: | ||||||
| - Behavior with cw toggle | - Behavior with cw toggle | ||||||
| - Truncated gimini links | - Truncated gimini links | ||||||
		Loading…
	
		Reference in a new issue