// Path: DaggerAndroidHelperLibrary/src/main/java/com/anprosit/android/dagger/ui/DaggerPreferenceFragment.java
// public class DaggerPreferenceFragment extends PreferenceFragment {
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         ((DaggerActivity) getActivity()).inject(this);
//     }
// }
// 
// Path: app/src/main/java/jp/yokomark/lgtm/app/preference/ui/helper/PreferenceListHelper.java
// public class PreferenceListHelper extends AbstractActivityHelper {
//     public static final String TAG = PreferenceListHelper.class.getSimpleName();
// 
//     @Inject
//     PreferenceListHelper(@ForActivity Context context) {
//         super(context);
//     }
// 
//     public void setUpActionBar(ActionBar actionBar) {
//         actionBar.setDisplayHomeAsUpEnabled(true);
//         actionBar.setHomeButtonEnabled(true);
//     }
// 
//     public void setUpVersionView(PreferenceFragment fragment) {
//         Preference preference = fragment.findPreference("VERSION");
//         if (preference == null) {
//             return;
//         }
//         preference.setSummary(fragment.getString(R.string.label_summary_pref_version,
//                 PackageManagerUtils.getVersionName(getContext()), PackageManagerUtils.getVersionCode(getContext())));
//     }
// 
//     public void setUpLicenseView(PreferenceFragment fragment) {
//         Preference preference = fragment.findPreference("LICENSE");
//         if (preference == null) {
//             return;
//         }
//         preference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
//             @Override
//             public boolean onPreferenceClick(Preference preference) {
//                 Intent intent = new Intent(getContext(), LicenseListActivity.class);
//                 getContext().startActivity(intent);
//                 return true;
//             }
//         });
//     }
// }


import android.os.Bundle;
import com.anprosit.android.dagger.ui.DaggerPreferenceFragment;
import javax.inject.Inject;
import jp.yokomark.lgtm.R;
import jp.yokomark.lgtm.app.preference.ui.helper.PreferenceListHelper;
package jp.yokomark.lgtm.app.preference.ui;





/**
 * @author yokomakukeishin
 * @version 1.0.0
 * @since 1.0.0
 */
public class PreferenceListFragment extends DaggerPreferenceFragment {
    public static final String TAG = PreferenceListFragment.class.getSimpleName();
    @Inject PreferenceListHelper mHelper;

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        addPreferencesFromResource(R.xml.preference_list);
// Path: DaggerAndroidHelperLibrary/src/main/java/com/anprosit/android/dagger/ui/DaggerPreferenceFragment.java
// public class DaggerPreferenceFragment extends PreferenceFragment {
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         ((DaggerActivity) getActivity()).inject(this);
//     }
// }
// 
// Path: app/src/main/java/jp/yokomark/lgtm/app/preference/ui/helper/PreferenceListHelper.java
// public class PreferenceListHelper extends AbstractActivityHelper {
//     public static final String TAG = PreferenceListHelper.class.getSimpleName();
// 
//     @Inject
//     PreferenceListHelper(@ForActivity Context context) {
//         super(context);
//     }
// 
//     public void setUpActionBar(ActionBar actionBar) {
//         actionBar.setDisplayHomeAsUpEnabled(true);
//         actionBar.setHomeButtonEnabled(true);
//     }
// 
//     public void setUpVersionView(PreferenceFragment fragment) {
//         Preference preference = fragment.findPreference("VERSION");
//         if (preference == null) {
//             return;
//         }
//         preference.setSummary(fragment.getString(R.string.label_summary_pref_version,
//                 PackageManagerUtils.getVersionName(getContext()), PackageManagerUtils.getVersionCode(getContext())));
//     }
// 
//     public void setUpLicenseView(PreferenceFragment fragment) {
//         Preference preference = fragment.findPreference("LICENSE");
//         if (preference == null) {
//             return;
//         }
//         preference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
//             @Override
//             public boolean onPreferenceClick(Preference preference) {
//                 Intent intent = new Intent(getContext(), LicenseListActivity.class);
//                 getContext().startActivity(intent);
//                 return true;
//             }
//         });
//     }
// }


// Path: app/src/main/java/jp/yokomark/lgtm/app/preference/ui/PreferenceListFragment.java
import android.os.Bundle;
import com.anprosit.android.dagger.ui.DaggerPreferenceFragment;
import javax.inject.Inject;
import jp.yokomark.lgtm.R;
import jp.yokomark.lgtm.app.preference.ui.helper.PreferenceListHelper;

package jp.yokomark.lgtm.app.preference.ui;





/**
 * @author yokomakukeishin
 * @version 1.0.0
 * @since 1.0.0
 */
public class PreferenceListFragment extends DaggerPreferenceFragment {
    public static final String TAG = PreferenceListFragment.class.getSimpleName();
    @Inject PreferenceListHelper mHelper;

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        addPreferencesFromResource(R.xml.preference_list);
        mHelper.setUpVersionView(this);