@Override public void onCreate(boolean hasTwoPanes, int categoryIndex) { this.hasTwoPanes = hasTwoPanes; display.setUpActionBar(CATEGORIES, hasTwoPanes, categoryIndex); }