/FileExtraction/Java_unseen/labexp_osmtracker-android/app/src/main/java/net/osmtracker/listener/TextNoteOnClickListener.java
package net.osmtracker.listener;

import net.osmtracker.activity.TrackLogger;

import android.view.View;
import android.view.View.OnClickListener;

/**
 * Manages text note button.
 * 
 * @author Nicolas Guillaumin
 *
 */
public class TextNoteOnClickListener implements OnClickListener {

	
	private TrackLogger tl;
	
	public TextNoteOnClickListener(TrackLogger trackLogger) {
		tl = trackLogger;
	}
	
	@Override
	public void onClick(final View v) {
		// let the TrackLogger activity open and control the dialog
		tl.showDialog(TrackLogger.DIALOG_TEXT_NOTE);
	}

}
