Эх сурвалжийг харах

Merge branch 'release-1.4.1' into develop

David A. Velasco 12 жил өмнө
parent
commit
66a005416c

+ 2 - 2
AndroidManifest.xml

@@ -18,8 +18,8 @@
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->
  -->
 <manifest package="com.owncloud.android"
 <manifest package="com.owncloud.android"
-    android:versionCode="104000"
-    android:versionName="1.4.0" xmlns:android="http://schemas.android.com/apk/res/android">
+    android:versionCode="104001"
+    android:versionName="1.4.1" xmlns:android="http://schemas.android.com/apk/res/android">
 
 
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />

+ 3 - 2
res/xml/preferences.xml

@@ -35,12 +35,13 @@
         				android:disableDependentsState="true" 
         				android:disableDependentsState="true" 
         				android:title="@string/instant_upload_on_wifi" 
         				android:title="@string/instant_upload_on_wifi" 
         				android:key="instant_upload_on_wifi"/>
         				android:key="instant_upload_on_wifi"/>
-    <CheckBoxPreference android:key="log_to_file" 
+    <!-- DISABLED FOR RELEASE UNTIL FIXED 
+    CheckBoxPreference android:key="log_to_file" 
                         android:title="@string/prefs_log_title"  
                         android:title="@string/prefs_log_title"  
                         android:summary="@string/prefs_log_summary"/>
                         android:summary="@string/prefs_log_summary"/>
 	<Preference 		android:key="log_history" 
 	<Preference 		android:key="log_history" 
                         android:title="@string/prefs_log_title_history"  
                         android:title="@string/prefs_log_title_history"  
-                        android:summary="@string/prefs_log_summary_history"/>
+                        android:summary="@string/prefs_log_summary_history"/ -->
 	<Preference 		android:id="@+id/about_app" 
 	<Preference 		android:id="@+id/about_app" 
         				android:title="@string/about_title" 
         				android:title="@string/about_title" 
         				android:key="about_app" />
         				android:key="about_app" />

+ 2 - 1
src/com/owncloud/android/authentication/AccountUtils.java

@@ -155,7 +155,8 @@ public class AccountUtils {
     
     
     public static class AccountNotFoundException extends AccountsException {
     public static class AccountNotFoundException extends AccountsException {
         
         
-        private static final long serialVersionUID = 4276870654168776992L;
+        /** Generated - should be refreshed every time the class changes!! */
+        private static final long serialVersionUID = -9013287181793186830L;
         
         
         private Account mFailedAccount; 
         private Account mFailedAccount; 
                 
                 

+ 1 - 1
src/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -1270,7 +1270,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
      * Called from SslValidatorDialog when a new server certificate was correctly saved.
      * Called from SslValidatorDialog when a new server certificate was correctly saved.
      */
      */
     public void onSavedCertificate() {
     public void onSavedCertificate() {
-        mOperationThread = mOcServerChkOperation.retry(this, mHandler);                
+        checkOcServer();
     }
     }
 
 
     /**
     /**

+ 1 - 1
src/com/owncloud/android/operations/RemoteOperationResult.java

@@ -50,7 +50,7 @@ import com.owncloud.android.network.CertificateCombinedException;
 public class RemoteOperationResult implements Serializable {
 public class RemoteOperationResult implements Serializable {
 
 
     /** Generated - should be refreshed every time the class changes!! */
     /** Generated - should be refreshed every time the class changes!! */
-    private static final long serialVersionUID = -7805531062432602444L;
+    private static final long serialVersionUID = 6106167714625712390L;
 
 
     
     
     private static final String TAG = "RemoteOperationResult";
     private static final String TAG = "RemoteOperationResult";

+ 1 - 0
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -1043,6 +1043,7 @@ public class FileDisplayActivity extends FileActivity implements
     @Override
     @Override
     public void onFileStateChanged() {
     public void onFileStateChanged() {
         refeshListOfFilesFragment();
         refeshListOfFilesFragment();
+        updateNavigationElementsInActionBar(getSecondFragment().getFile());
     }
     }
 
 
     
     

+ 3 - 0
src/com/owncloud/android/ui/activity/Preferences.java

@@ -111,6 +111,7 @@ public class Preferences extends SherlockPreferenceActivity implements OnPrefere
                }
                }
        }
        }
        
        
+       /* DISABLED FOR RELEASE UNTIL FIXED 
        pLogging = (CheckBoxPreference) findPreference("log_to_file");
        pLogging = (CheckBoxPreference) findPreference("log_to_file");
        if (pLogging != null) {
        if (pLogging != null) {
            pLogging.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
            pLogging.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {
@@ -145,6 +146,8 @@ public class Preferences extends SherlockPreferenceActivity implements OnPrefere
             }
             }
         });
         });
        }
        }
+       */
+       
       }
       }
     }
     }
 
 

+ 8 - 1
src/com/owncloud/android/ui/dialog/SslValidatorDialog.java

@@ -18,6 +18,7 @@
 package com.owncloud.android.ui.dialog;
 package com.owncloud.android.ui.dialog;
 
 
 import java.io.IOException;
 import java.io.IOException;
+import java.security.GeneralSecurityException;
 import java.security.KeyStoreException;
 import java.security.KeyStoreException;
 import java.security.NoSuchAlgorithmException;
 import java.security.NoSuchAlgorithmException;
 import java.security.cert.CertificateException;
 import java.security.cert.CertificateException;
@@ -111,7 +112,13 @@ public class SslValidatorDialog extends Dialog {
                             else
                             else
                                 Log_OC.d(TAG, "Nobody there to notify the certificate was saved");
                                 Log_OC.d(TAG, "Nobody there to notify the certificate was saved");
                             
                             
-                        } catch (Exception e) {
+                        } catch (GeneralSecurityException e) {
+                            dismiss();
+                            if (mListener != null)
+                                mListener.onFailedSavingCertificate();
+                            Log_OC.e(TAG, "Server certificate could not be saved in the known servers trust store ", e);
+                            
+                        } catch (IOException e) {
                             dismiss();
                             dismiss();
                             if (mListener != null)
                             if (mListener != null)
                                 mListener.onFailedSavingCertificate();
                                 mListener.onFailedSavingCertificate();