mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Fix, App crash after rotate the device previewing an image
This commit is contained in:
parent
d4c14f8b29
commit
b7dfc0aa41
2 changed files with 4 additions and 2 deletions
|
@ -216,7 +216,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
getSupportActionBar().setDisplayShowHomeEnabled(false);
|
||||
getSupportActionBar().setDisplayShowTitleEnabled(false);
|
||||
}
|
||||
|
||||
|
||||
mIsFirstAuthAttempt = true;
|
||||
|
||||
// bind to Operations Service
|
||||
|
|
|
@ -92,7 +92,7 @@ public class PreviewImageActivity extends FileActivity implements
|
|||
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
|
||||
|
@ -104,6 +104,8 @@ public class PreviewImageActivity extends FileActivity implements
|
|||
actionBar.setDisplayHomeAsUpEnabled(true);
|
||||
actionBar.hide();
|
||||
|
||||
updateActionBarTitleAndHomeButton();
|
||||
|
||||
// Make sure we're running on Honeycomb or higher to use FullScreen and
|
||||
// Immersive Mode
|
||||
if (isHoneycombOrHigher()) {
|
||||
|
|
Loading…
Reference in a new issue