| 
				
			 | 
			
			
				@@ -108,7 +108,7 @@ public class ViewShot implements UIBlock { 
			 | 
		
	
		
			
			| 
				108
			 | 
			
				108
			 | 
			
			
				                 byte[] bytes = ((ByteArrayOutputStream) os).toByteArray(); 
			 | 
		
	
		
			
			| 
				109
			 | 
			
				109
			 | 
			
			
				                 String data = Base64.encodeToString(bytes, Base64.NO_WRAP); 
			 | 
		
	
		
			
			| 
				110
			 | 
			
				110
			 | 
			
			
				                 // correct the extension if JPG 
			 | 
		
	
		
			
			| 
				111
			 | 
			
				
			 | 
			
			
				-                if (extension != null && extension.equals("jpg")) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				111
			 | 
			
			
				+                if ("jpg".equals(extension)) { 
			 | 
		
	
		
			
			| 
				112
			 | 
			
				112
			 | 
			
			
				                     extension = "jpeg"; 
			 | 
		
	
		
			
			| 
				113
			 | 
			
				113
			 | 
			
			
				                 } 
			 | 
		
	
		
			
			| 
				114
			 | 
			
				114
			 | 
			
			
				                 data = "data:image/"+extension+";base64," + data; 
			 |