Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18444] Android: email address partially underlined

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-07-13T18:05:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelsTCSupport, autolink, domain
ReporterMitch Starnes
AssigneeEric Merriman
Created2015-01-09T20:46:37.000+0000
Updated2017-07-18T17:51:53.000+0000

Description

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.

Comments

  1. Shuo Liang 2015-01-12

    Hi, I can't reproduce your problem in my Samsung Galaxy Nexus on Android 4.2.2 with following code.
       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();
       
    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
  2. Mitch Starnes 2015-01-12

    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.
  3. Mitch Starnes 2015-01-12

    Ti SDK is 3.4.
  4. Mitch Starnes 2015-01-12

    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.
  5. Shuo Liang 2015-01-13

    HI Mitch, Thank you for your reply, we will do more research about the device you mentioned. Regards, Shuo
  6. Mitch Starnes 2015-01-15

    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.
  7. Lee Morris 2017-07-13

    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

JSON Source