// Path: Reddit Headlines for DashClock/src/main/java/net/trolldad/dashclock/redditheadlines/view/FontHelper.java
// public class FontHelper {
//     private static Typeface regular;
//     private static Typeface bold;
//     private static Typeface light;
// 
//     public static final String TAG_NORMAL = "regular";
//     public static final String TAG_BOLD = "bold";
//     public static final String TAG_LIGHT = "light";
// 
//     public static void setCustomFont(View topView, AssetManager assetsManager) {
//         if (regular == null || bold == null || light == null) {
//             regular = Typeface.createFromAsset(assetsManager, "Roboto-Regular.ttf");
//             bold = Typeface.createFromAsset(assetsManager, "Roboto-Bold.ttf");
//             light = Typeface.createFromAsset(assetsManager, "Roboto-Light.ttf");
//         }
// 
//         if (topView instanceof ViewGroup) {
//             processViewGroup((ViewGroup) topView);
//         } else if (topView instanceof TextView) {
//             setCustomFont((TextView) topView);
//         }
//     }
// 
//     private static void processViewGroup(ViewGroup viewGroup) {
//         for (int i = 0; i < viewGroup.getChildCount(); i++) {
//             final View c = viewGroup.getChildAt(i);
//             if (c instanceof TextView) {
//                 setCustomFont((TextView) c);
//             } else if (c instanceof ViewGroup) {
//                 processViewGroup((ViewGroup) c);
//             }
//         }
//     }
// 
//     private static void setCustomFont(TextView textView) {
//         Object tag = textView.getTag();
//         if (tag instanceof String) {
//             if (tag.equals(TAG_BOLD)) {
//                 textView.setTypeface(bold);
//                 return;
//             }
//             else if (tag.equals(TAG_NORMAL)) {
//                 textView.setTypeface(regular);
//             }
//             else {
//                 textView.setTypeface(light);
//             }
//         }
//         else {
//             textView.setTypeface(light);
//         }
// 
//     }
// }


import android.app.Activity;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;
import com.google.analytics.tracking.android.EasyTracker;
import net.trolldad.dashclock.redditheadlines.R;
import net.trolldad.dashclock.redditheadlines.view.FontHelper;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.FromHtml;
import org.androidannotations.annotations.ViewById;
package net.trolldad.dashclock.redditheadlines.activity;





/**
 * Created by jacob-tabak on 1/26/14.
 */
@EActivity(R.layout.activity_about)
public class AboutActivity extends Activity {
    @ViewById(R.id.about_textview)
    @FromHtml(R.string.about_html)
    TextView mAboutTextView;

    @Override
    protected void onStart() {
        super.onStart();
        EasyTracker.getInstance(this).activityStart(this);
    }

    @Override
    protected void onStop() {
        super.onStop();
        EasyTracker.getInstance(this).activityStop(this);
    }

    @AfterViews
    void setFont() {
// Path: Reddit Headlines for DashClock/src/main/java/net/trolldad/dashclock/redditheadlines/view/FontHelper.java
// public class FontHelper {
//     private static Typeface regular;
//     private static Typeface bold;
//     private static Typeface light;
// 
//     public static final String TAG_NORMAL = "regular";
//     public static final String TAG_BOLD = "bold";
//     public static final String TAG_LIGHT = "light";
// 
//     public static void setCustomFont(View topView, AssetManager assetsManager) {
//         if (regular == null || bold == null || light == null) {
//             regular = Typeface.createFromAsset(assetsManager, "Roboto-Regular.ttf");
//             bold = Typeface.createFromAsset(assetsManager, "Roboto-Bold.ttf");
//             light = Typeface.createFromAsset(assetsManager, "Roboto-Light.ttf");
//         }
// 
//         if (topView instanceof ViewGroup) {
//             processViewGroup((ViewGroup) topView);
//         } else if (topView instanceof TextView) {
//             setCustomFont((TextView) topView);
//         }
//     }
// 
//     private static void processViewGroup(ViewGroup viewGroup) {
//         for (int i = 0; i < viewGroup.getChildCount(); i++) {
//             final View c = viewGroup.getChildAt(i);
//             if (c instanceof TextView) {
//                 setCustomFont((TextView) c);
//             } else if (c instanceof ViewGroup) {
//                 processViewGroup((ViewGroup) c);
//             }
//         }
//     }
// 
//     private static void setCustomFont(TextView textView) {
//         Object tag = textView.getTag();
//         if (tag instanceof String) {
//             if (tag.equals(TAG_BOLD)) {
//                 textView.setTypeface(bold);
//                 return;
//             }
//             else if (tag.equals(TAG_NORMAL)) {
//                 textView.setTypeface(regular);
//             }
//             else {
//                 textView.setTypeface(light);
//             }
//         }
//         else {
//             textView.setTypeface(light);
//         }
// 
//     }
// }


// Path: Reddit Headlines for DashClock/src/main/java/net/trolldad/dashclock/redditheadlines/activity/AboutActivity.java
import android.app.Activity;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;
import com.google.analytics.tracking.android.EasyTracker;
import net.trolldad.dashclock.redditheadlines.R;
import net.trolldad.dashclock.redditheadlines.view.FontHelper;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.FromHtml;
import org.androidannotations.annotations.ViewById;

package net.trolldad.dashclock.redditheadlines.activity;





/**
 * Created by jacob-tabak on 1/26/14.
 */
@EActivity(R.layout.activity_about)
public class AboutActivity extends Activity {
    @ViewById(R.id.about_textview)
    @FromHtml(R.string.about_html)
    TextView mAboutTextView;

    @Override
    protected void onStart() {
        super.onStart();
        EasyTracker.getInstance(this).activityStart(this);
    }

    @Override
    protected void onStop() {
        super.onStop();
        EasyTracker.getInstance(this).activityStop(this);
    }

    @AfterViews
    void setFont() {
        FontHelper.setCustomFont(mAboutTextView, getAssets());