|
@@ -178,12 +178,6 @@ public class FileDisplayActivity extends HookActivity
|
|
|
mRightFragmentContainer = findViewById(R.id.right_fragment_container);
|
|
|
|
|
|
// Action bar setup
|
|
|
- getSupportActionBar().setHomeButtonEnabled(true); // mandatory since Android ICS,
|
|
|
- // according to the official
|
|
|
- // documentation
|
|
|
-
|
|
|
- // enable ActionBar app icon to behave as action to toggle nav drawer
|
|
|
- //getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
|
|
getSupportActionBar().setHomeButtonEnabled(true);
|
|
|
|
|
|
// Init Fragment without UI to retain AsyncTask across configuration changes
|
|
@@ -1714,7 +1708,7 @@ public class FileDisplayActivity extends HookActivity
|
|
|
PreviewTextFragment.class.getName(), args);
|
|
|
setSecondFragment(textPreviewFragment);
|
|
|
updateFragmentsVisibility(true);
|
|
|
- //updateNavigationElementsInActionBar(file);
|
|
|
+ updateActionBarTitleAndHomeButton(file);
|
|
|
setFile(file);
|
|
|
}
|
|
|
|