projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix, in a tablet, the title is not correct when menu is shown and rotating
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
ui
/
preview
/
PreviewImageActivity.java
diff --git
a/src/com/owncloud/android/ui/preview/PreviewImageActivity.java
b/src/com/owncloud/android/ui/preview/PreviewImageActivity.java
index
c4b57f6
..
c5977a8
100644
(file)
--- a/
src/com/owncloud/android/ui/preview/PreviewImageActivity.java
+++ b/
src/com/owncloud/android/ui/preview/PreviewImageActivity.java
@@
-92,7
+92,7
@@
public class PreviewImageActivity extends FileActivity implements
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
+
//
requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
setContentView(R.layout.preview_image_activity);
// Navigation Drawer
setContentView(R.layout.preview_image_activity);
// Navigation Drawer
@@
-104,6
+104,8
@@
public class PreviewImageActivity extends FileActivity implements
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.hide();
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.hide();
+ updateActionBarTitleAndHomeButton();
+
// Make sure we're running on Honeycomb or higher to use FullScreen and
// Immersive Mode
if (isHoneycombOrHigher()) {
// Make sure we're running on Honeycomb or higher to use FullScreen and
// Immersive Mode
if (isHoneycombOrHigher()) {
@@
-404,6
+406,7
@@
public class PreviewImageActivity extends FileActivity implements
} else {
OCFile currentFile = mPreviewImagePagerAdapter.getFileAt(position);
getSupportActionBar().setTitle(currentFile.getFileName());
} else {
OCFile currentFile = mPreviewImagePagerAdapter.getFileAt(position);
getSupportActionBar().setTitle(currentFile.getFileName());
+ mDrawerToggle.setDrawerIndicatorEnabled(false);
if (!currentFile.isDown()) {
if (!mPreviewImagePagerAdapter.pendingErrorAt(position)) {
requestForDownload(currentFile);
if (!currentFile.isDown()) {
if (!mPreviewImagePagerAdapter.pendingErrorAt(position)) {
requestForDownload(currentFile);
@@
-594,4
+597,10
@@
public class PreviewImageActivity extends FileActivity implements
}
return false;
}
}
return false;
}
+
+ @Override
+ public void allFilesOption(){
+ backToDisplayActivity();
+ super.allFilesOption();
+ }
}
}