|  |  |  | @ -1,5 +1,6 @@ | 
		
	
		
			
				|  |  |  |  | package org.thoughtcrime.securesms.components.emoji; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | import android.graphics.Paint; | 
		
	
		
			
				|  |  |  |  | import android.graphics.Paint.FontMetricsInt; | 
		
	
		
			
				|  |  |  |  | import android.graphics.drawable.Drawable; | 
		
	
		
			
				|  |  |  |  | import android.support.annotation.NonNull; | 
		
	
	
		
			
				
					|  |  |  | @ -15,4 +16,10 @@ public class EmojiSpan extends AnimatingImageSpan { | 
		
	
		
			
				|  |  |  |  |                                 : tv.getResources().getDimensionPixelSize(R.dimen.conversation_item_body_text_size); | 
		
	
		
			
				|  |  |  |  |     getDrawable().setBounds(0, 0, size, size); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   @Override public int getSize(Paint paint, CharSequence text, int start, int end, | 
		
	
		
			
				|  |  |  |  |                                FontMetricsInt fm) | 
		
	
		
			
				|  |  |  |  |   { | 
		
	
		
			
				|  |  |  |  |     return getDrawable().getBounds().right; | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | } | 
		
	
	
		
			
				
					|  |  |  | 
 |