Merge branch 'develop' into cancel_transfer_for_deleted_users
authormasensio <masensio@solidgear.es>
Thu, 19 Feb 2015 11:54:59 +0000 (12:54 +0100)
committermasensio <masensio@solidgear.es>
Thu, 19 Feb 2015 11:54:59 +0000 (12:54 +0100)
Conflicts:
AndroidManifest.xml

1  2 
AndroidManifest.xml
src/com/owncloud/android/files/services/FileDownloader.java
src/com/owncloud/android/files/services/FileUploader.java
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@@ -3,7 -3,7 +3,7 @@@
    ownCloud Android client application
  
    Copyright (C) 2012  Bartek Przybylski
--  Copyright (C) 2012-2014 ownCloud Inc.
++  Copyright (C) 2012-2015 ownCloud Inc.
  
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 2,
@@@ -86,7 -86,7 +86,6 @@@
              android:name=".ui.activity.Preferences"
              android:theme="@style/Theme.ownCloud" >
          </activity>
-         
 -
          <activity     
              android:name=".ui.preview.PreviewImageActivity" 
              />
@@@ -172,8 -171,23 +172,23 @@@ public class FileUploader extends Servi
      }
  
      /**
+      * Service clean up
+      */
+     @Override
+     public void onDestroy() {
+         Log_OC.v(TAG, "Destroying service" );
+         mBinder = null;
+         mServiceHandler = null;
+         mServiceLooper.quit();
+         mServiceLooper = null;
+         mNotificationManager = null;
+         super.onDestroy();
+     }
+     /**
       * Entry point to add one or several files to the queue of uploads.
 -     * 
 +     *
       * New uploads are added calling to startService(), resulting in a call to
       * this method. This ensures the service will keep on working although the
       * caller activity goes away.