Problem Description
We are displaying email address in a label with auto link turned off. However, some email addresses are displayed as a partial hyperlink.
For example, "asdf.la" in asdf.latham@domain.com appears as a link. It seems to me that Titanium or Android is detecting asdf.la as a hostname.
Steps to reproduce
1. Create a new mobile project classic titanium
2. Replace app.js contents with:
var win = Ti.UI.createWindow({
backgroundColor: 'white',
exitOnClose: true,
fullscreen: false,
layout: 'vertical',
title: 'Label Demo'
});
var label1 = Ti.UI.createLabel({
color: '#900',
text: 'asdf.latham@domain.com',
textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,
top: 30,
width: Ti.UI.SIZE,
height: Ti.UI.SIZE,
autoLink: Ti.UI.AUTOLINK_NONE
});
win.add(label1);
win.open();
3. Run it in Samsung Galaxy S3 running Android 4.3 or Samsung Tab 10.1” running Android version 4.1.2. Otherwise, will work.
Extra information
This only happens in Samsung devices. The customer was able to reproduce the issue using the testcase and devices: Samsung Galaxy S3 running Android 4.3 & Samsung Tab 10.1” running Android version 4.1.2.
Hi, I can't reproduce your problem in my Samsung Galaxy Nexus on Android 4.2.2 with following code.
Would you please try my code in your device, see if the problem still there, If yes, please provide the following questions: what kind of device did you use? Have you tried other device? Which version of Ti SDK did you use? Regards, Shuo
We are able to reproduce the problem using your code on a Samsung Galaxy S3 running Android 4.3. On another device, a Motorola Moto X running 4.4, I was not able to reproduce the problem.
Ti SDK is 3.4.
Shuo Liang: Using your code, we were also able to reproduce the problem on a Samsung Tab 10.1” running Android version 4.1.2. Thanks.
HI Mitch, Thank you for your reply, we will do more research about the device you mentioned. Regards, Shuo
We were able to reproduce the problem on two devices: 1. Samsung Galaxy S3 running Android 4.3 2. Samsung Tab 10.1” running Android version 4.1.2 Thanks.
I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131