@@ -0,0 +1,686 @@
+package com.vikashkothary.life.ui.base;%0A%0Aimport android.support.annotation.IdRes;%0Aimport android.support.v7.preference.PreferenceFragmentCompat;%0A%0Aimport com.vikashkothary.life.R;%0A%0A/**%0A * Created by vikash on 19/07/17.%0A */%0A%0Apublic abstract class BaseSettingsFragment extends PreferenceFragmentCompat %7B%0A%0A    public void attachFragment(BaseActivity activity) %7B%0A        attachFragment(activity, R.id.fragment_container);%0A    %7D%0A%0A    public void attachFragment(BaseActivity activity, @IdRes int layoutId) %7B%0A        activity.getSupportFragmentManager().beginTransaction()%0A                .replace(layoutId, this)%0A                .addToBackStack(getTag())%0A                .commit();%0A    %7D%0A%0A%0A%0A%7D%0A

Create BaseSettingsFragment