mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
OC-1507- Reopened. Browse up <
This commit is contained in:
parent
5ff0989eb4
commit
df394c71be
1 changed files with 14 additions and 28 deletions
|
@ -594,7 +594,6 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
|
|||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if (!mSyncInProgress) {
|
||||
OCFileListFragment listOfFiles = getListOfFilesFragment();
|
||||
if (mDualPane || getSecondFragment() == null) {
|
||||
if (listOfFiles != null) { // should never be null, indeed
|
||||
|
@ -610,7 +609,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
|
|||
setFile(listOfFiles.getCurrentFile());
|
||||
}
|
||||
cleanSecondFragment();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -651,19 +650,6 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
Log_OC.e(TAG, "onStart() start");
|
||||
|
||||
// Update the sync operation
|
||||
if (mSyncInProgress){
|
||||
}
|
||||
|
||||
Log_OC.e(TAG, "onStart() end");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
|
@ -1073,7 +1059,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
|
|||
if (chosenFile == null || mDualPane) {
|
||||
// only list of files - set for browsing through folders
|
||||
OCFile currentDir = getCurrentDir();
|
||||
actionBar.setDisplayHomeAsUpEnabled(currentDir != null && currentDir.getParentId() != 0 && !mSyncInProgress);
|
||||
actionBar.setDisplayHomeAsUpEnabled(currentDir != null && currentDir.getParentId() != 0);
|
||||
actionBar.setDisplayShowTitleEnabled(false);
|
||||
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
|
||||
actionBar.setListNavigationCallbacks(mDirectories, this); // assuming mDirectories is updated
|
||||
|
|
Loading…
Reference in a new issue