mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Fix header
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
6c8c58f220
commit
987f8bb82a
1 changed files with 11 additions and 8 deletions
|
@ -119,7 +119,8 @@ public class PreviewImageActivity extends FileActivity implements
|
|||
setupDrawer();
|
||||
|
||||
// ActionBar
|
||||
updateActionBarTitleAndHomeButton(null);
|
||||
OCFile chosenFile = IntentExtensionsKt.getParcelableArgument(getIntent(), FileActivity.EXTRA_FILE, OCFile.class);
|
||||
updateActionBarTitleAndHomeButton(chosenFile);
|
||||
|
||||
if (actionBar != null) {
|
||||
viewThemeUtils.files.setWhiteBackButton(this, actionBar);
|
||||
|
@ -387,17 +388,13 @@ public class PreviewImageActivity extends FileActivity implements
|
|||
public void onPageSelected(int position) {
|
||||
savedPosition = position;
|
||||
hasSavedPosition = true;
|
||||
|
||||
OCFile currentFile = previewImagePagerAdapter.getFileAt(position);
|
||||
|
||||
if (!isDownloadWorkStarted) {
|
||||
requestWaitingForBinder = true;
|
||||
} else {
|
||||
OCFile currentFile = previewImagePagerAdapter.getFileAt(position);
|
||||
|
||||
if (currentFile != null) {
|
||||
if (getSupportActionBar() != null) {
|
||||
getSupportActionBar().setTitle(currentFile.getFileName());
|
||||
}
|
||||
setDrawerIndicatorEnabled(false);
|
||||
|
||||
if (currentFile.isEncrypted() && !currentFile.isDown() &&
|
||||
!previewImagePagerAdapter.pendingErrorAt(position)) {
|
||||
requestForDownload(currentFile);
|
||||
|
@ -408,6 +405,12 @@ public class PreviewImageActivity extends FileActivity implements
|
|||
}
|
||||
}
|
||||
|
||||
if (currentFile != null) {
|
||||
if (getSupportActionBar() != null) {
|
||||
getSupportActionBar().setTitle(currentFile.getFileName());
|
||||
}
|
||||
setDrawerIndicatorEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue