Search in sources :

Example 1 with MainActivity

use of com.farmerbb.taskbar.activity.MainActivity in project Taskbar by farmerbb.

the class AboutFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    AppCompatActivity activity = (AppCompatActivity) getActivity();
    activity.setTitle(((MainActivity) getActivity()).getAboutFragmentTitle());
    ActionBar actionBar = activity.getSupportActionBar();
    if (actionBar != null)
        actionBar.setDisplayHomeAsUpEnabled(((MainActivity) getActivity()).getAboutFragmentBackArrow());
}
Also used : AppCompatActivity(androidx.appcompat.app.AppCompatActivity) MainActivity(com.farmerbb.taskbar.activity.MainActivity) ActionBar(androidx.appcompat.app.ActionBar)

Aggregations

ActionBar (androidx.appcompat.app.ActionBar)1 AppCompatActivity (androidx.appcompat.app.AppCompatActivity)1 MainActivity (com.farmerbb.taskbar.activity.MainActivity)1