// Path: WhatAndroid/src/main/java/what/whatandroid/callbacks/ShowHiddenTagListener.java
// public interface ShowHiddenTagListener {
// 	/**
// 	 * Request that the hidden text be shown in a popup view
// 	 *
// 	 * @param title the title of the hidden text
// 	 * @param text  the hidden text to show, markup will be parsed
// 	 */
// 	public void showText(String title, String text);
// 
// 	/**
// 	 * Request that the hidden image be shown in a popup view
// 	 *
// 	 * @param url the url of the image to show
// 	 */
// 	public void showImage(String url);
// }


import android.text.style.ClickableSpan;
import android.util.Log;
import android.view.View;
import what.whatandroid.callbacks.ShowHiddenTagListener;
package what.whatandroid.comments.spans;


/**
 * Implements the behavior of the site's hidden/mature tags. When clicked we try to
 * get a ShowHiddenTagListener from the context and if it implements it we request
 * to display the hidden text
 */
public class HiddenTextSpan extends ClickableSpan {
	private String title, text;

	//TODO: maybe change these to be charsequences as well?
	public HiddenTextSpan(String title, String text){
		super();
		this.title = title;
		this.text = text;
	}

	@Override
	public void onClick(View widget){
		try {
// Path: WhatAndroid/src/main/java/what/whatandroid/callbacks/ShowHiddenTagListener.java
// public interface ShowHiddenTagListener {
// 	/**
// 	 * Request that the hidden text be shown in a popup view
// 	 *
// 	 * @param title the title of the hidden text
// 	 * @param text  the hidden text to show, markup will be parsed
// 	 */
// 	public void showText(String title, String text);
// 
// 	/**
// 	 * Request that the hidden image be shown in a popup view
// 	 *
// 	 * @param url the url of the image to show
// 	 */
// 	public void showImage(String url);
// }


// Path: WhatAndroid/src/main/java/what/whatandroid/comments/spans/HiddenTextSpan.java
import android.text.style.ClickableSpan;
import android.util.Log;
import android.view.View;
import what.whatandroid.callbacks.ShowHiddenTagListener;

package what.whatandroid.comments.spans;


/**
 * Implements the behavior of the site's hidden/mature tags. When clicked we try to
 * get a ShowHiddenTagListener from the context and if it implements it we request
 * to display the hidden text
 */
public class HiddenTextSpan extends ClickableSpan {
	private String title, text;

	//TODO: maybe change these to be charsequences as well?
	public HiddenTextSpan(String title, String text){
		super();
		this.title = title;
		this.text = text;
	}

	@Override
	public void onClick(View widget){
		try {
			ShowHiddenTagListener listener = (ShowHiddenTagListener)widget.getContext();