mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 04:18:52 +08:00 
			
		
		
		
	fix(android): tappable spans aren't visible on single-line labels (#10055)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							6cabcab0d5
						
					
				
				
					commit
					57657075ca
				
			@ -494,6 +494,9 @@ export class TextBase extends TextBaseCommon {
 | 
			
		||||
		if (this._tappable !== tappable) {
 | 
			
		||||
			this._tappable = tappable;
 | 
			
		||||
			if (this._tappable) {
 | 
			
		||||
				// Setting singleLine to true results in conflicts with LinkMovementMethod
 | 
			
		||||
				// See https://stackoverflow.com/a/34407901
 | 
			
		||||
				this.nativeTextViewProtected.setSingleLine(false);
 | 
			
		||||
				this.nativeTextViewProtected.setMovementMethod(android.text.method.LinkMovementMethod.getInstance());
 | 
			
		||||
				this.nativeTextViewProtected.setHighlightColor(null);
 | 
			
		||||
			} else {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user