Remove setContentView override

This commit is contained in:
Andrew Rabert 2018-04-23 23:31:51 -04:00
parent 81b562a2cb
commit 0a1cc75cc4
1 changed files with 3 additions and 8 deletions

View File

@ -116,6 +116,9 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
lastSelectedPosition = R.id.drawer_downloading;
}
setContentView(R.layout.abstract_fragment_activity);
if (drawerToggle != null) {
drawerToggle.setDrawerIndicatorEnabled(true);
}
if (findViewById(R.id.fragment_container) != null && savedInstanceState == null) {
String fragmentType = getIntent().getStringExtra(Constants.INTENT_EXTRA_FRAGMENT_TYPE);
@ -414,14 +417,6 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
}
}
@Override
public void setContentView(int viewId) {
super.setContentView(viewId);
if (drawerToggle != null) {
drawerToggle.setDrawerIndicatorEnabled(true);
}
}
@Override
public void onBackPressed() {
if (slideUpPanel.getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED && secondaryFragment == null) {