I am using a toolbar as my actionbar in an activity. I am trying to add the method getActionBar().setDisplayHomeAsUpEnabled(true); to the Activity.java file fo
getActionBar().setDisplayHomeAsUpEnabled(true);
Try this :
private ActionBar getActionBar() { return ((AppCompatActivity) getActivity()).getSupportActionBar(); }