package de.thedevstack.conversationsplus.ui.preferences; import android.content.Context; import android.content.Intent; import android.preference.Preference; import android.util.AttributeSet; import de.thedevstack.conversationsplus.ui.LogCatOutputActivity; /** * Created by tzur on 07.10.2015. */ public class LogInformationPreference extends Preference { public LogInformationPreference(final Context context, final AttributeSet attrs, final int defStyle) { super(context, attrs, defStyle); } public LogInformationPreference(final Context context, final AttributeSet attrs) { super(context, attrs); } public LogInformationPreference(Context context) { super(context); } @Override protected void onClick() { super.onClick(); final Intent intent = new Intent(getContext(), LogCatOutputActivity.class); getContext().startActivity(intent); } }