Code example for URLSpan

Methods: getURL

0
package com.google.android.apps.plus.views; 
 
import android.text.TextPaint; 
import android.text.style.URLSpan; 
 
public class MentionSpan extends URLSpan
{ 
  MentionSpan(URLSpan paramURLSpan)
  { 
    super(paramURLSpan.getURL());
    if (!isMention(paramURLSpan))
      throw new IllegalArgumentException(paramURLSpan.getURL());
  } 
 
  public MentionSpan(String paramString)
  { 
    super("+" + paramString);
  } 
 
  public static boolean isMention(URLSpan paramURLSpan)
  { 
    String str = paramURLSpan.getURL();
    if ((str != null) && (str.startsWith("+")));
    for (boolean bool = true; ; bool = false)
      return bool;
  }