mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Merge pull request #2648 from nextcloud/resumeDetailView
File detail view: store file/account when suspending fragments
This commit is contained in:
commit
0b2c986c0f
2 changed files with 16 additions and 0 deletions
|
@ -336,4 +336,12 @@ public class FileDetailActivitiesFragment extends Fragment implements ActivityLi
|
||||||
public void onActivityClicked(RichObject richObject) {
|
public void onActivityClicked(RichObject richObject) {
|
||||||
// TODO implement activity click
|
// TODO implement activity click
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSaveInstanceState(@NonNull Bundle outState) {
|
||||||
|
super.onSaveInstanceState(outState);
|
||||||
|
|
||||||
|
outState.putParcelable(FileActivity.EXTRA_FILE, file);
|
||||||
|
outState.putParcelable(FileActivity.EXTRA_ACCOUNT, account);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -459,4 +459,12 @@ public class FileDetailSharingFragment extends Fragment implements UserListAdapt
|
||||||
setShareByLinkInfo(false);
|
setShareByLinkInfo(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSaveInstanceState(@NonNull Bundle outState) {
|
||||||
|
super.onSaveInstanceState(outState);
|
||||||
|
|
||||||
|
outState.putParcelable(FileActivity.EXTRA_FILE, file);
|
||||||
|
outState.putParcelable(FileActivity.EXTRA_ACCOUNT, account);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue