Back to project page StravaFlow.
The source code is released under:
MIT License
If you think the Android project StravaFlow listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.mattlogan.stravaflow.ui.fragment; /*w ww.jav a2s . c o m*/ import android.app.ActionBar; import android.app.Activity; import android.app.Fragment; import me.mattlogan.stravaflow.StravaFlowApplication; public abstract class BaseFragment extends Fragment { @Override public void onResume() { super.onResume(); Activity activity = getActivity(); if (activity != null) { ActionBar actionBar = activity.getActionBar(); if (actionBar != null) { actionBar.setTitle(getTitle()); } } } protected abstract String getTitle(); protected StravaFlowApplication getStravaFlowApp() { return (StravaFlowApplication) getActivity().getApplication(); } }