do not auto link non-http URLs
This commit is contained in:
		
							parent
							
								
									c76b073b8e
								
							
						
					
					
						commit
						55e9067b27
					
				| @ -92,8 +92,8 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie | ||||
| 	}; | ||||
| 	private static final Linkify.MatchFilter WEBURL_MATCH_FILTER = new Linkify.MatchFilter() { | ||||
| 		@Override | ||||
| 		public boolean acceptMatch(CharSequence charSequence, int start, int end) { | ||||
| 			return start < 1 || charSequence.charAt(start-1) != '@'; | ||||
| 		public boolean acceptMatch(CharSequence cs, int start, int end) { | ||||
| 			return start < 1 || (cs.charAt(start-1) != '@' && !cs.subSequence(Math.max(0,start - 3),start).equals("://")); | ||||
| 		} | ||||
| 	}; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch