package com.pennapps.labs.pennmobile;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AlertDialog;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.TextView;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class AboutFragment extends Fragment {
    private AlertDialog mAlertDialog;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ((MainActivity) getActivity()).closeKeyboard();
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_about, container, false);
        ButterKnife.bind(this, v);
        TextView featureRequest = (TextView) v.findViewById(R.id.about_desc);
        featureRequest.setMovementMethod(LinkMovementMethod.getInstance());
        String text = "PennMobile was developed by Penn Labs, with funding<br>" +
                "and support from the Undergraduate Assembly. Special thanks to Vishwa Patel. <br><br> &copy; 2015 Penn Labs <br><br>" +
                "<a href='mailto:pennappslabs@gmail.com?subject=[Penn Mobile Android]'>Request a feature</a><br><br>" +
                "<a href='http://pennlabs.org'>More information</a>";
        featureRequest.setText(Html.fromHtml(text));
        return v;
    }

    @Override
    public void onResume() {
        super.onResume();
        getActivity().setTitle(R.string.about);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @OnClick(R.id.licenses)
    public void displayLicensesAlertDialog() {
        WebView view = (WebView) LayoutInflater.from(getActivity()).inflate(R.layout.dialog_licenses, null);
        view.loadUrl("file:///android_asset/open_source_licenses.html");
        mAlertDialog = new AlertDialog.Builder(getActivity(), R.style.Theme_AppCompat_Light_Dialog_Alert)
                .setTitle(getString(R.string.action_licenses))
                .setView(view)
                .setPositiveButton(android.R.string.ok, null)
                .show();
    }
}

@@ -1804,24 +1804,89 @@
 is);%0A    %7D%0A%0A
+    @OnClick(R.id.about_desc)%0A    public void onClick() %7B%0A    %7D%0A%0A
     @OnClick

Add OnClick listener to about_desc