Fix, App crash after rotate the device previewing an image
authormasensio <masensio@solidgear.es>
Tue, 2 Jun 2015 12:16:48 +0000 (14:16 +0200)
committermasensio <masensio@solidgear.es>
Tue, 2 Jun 2015 12:16:48 +0000 (14:16 +0200)
src/com/owncloud/android/authentication/AuthenticatorActivity.java
src/com/owncloud/android/ui/preview/PreviewImageActivity.java

index 10993e1..d741929 100644 (file)
@@ -216,7 +216,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
             getSupportActionBar().setDisplayShowHomeEnabled(false);\r
             getSupportActionBar().setDisplayShowTitleEnabled(false);\r
         }\r
             getSupportActionBar().setDisplayShowHomeEnabled(false);\r
             getSupportActionBar().setDisplayShowTitleEnabled(false);\r
         }\r
-        \r
+\r
         mIsFirstAuthAttempt = true;\r
 \r
         // bind to Operations Service\r
         mIsFirstAuthAttempt = true;\r
 \r
         // bind to Operations Service\r
index 2124089..c5977a8 100644 (file)
@@ -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()) {