Merge branch 'beta' of https://github.com/owncloud/android into beta
authorAndy Scherzinger <info@andy-scherzinger.de>
Mon, 9 Nov 2015 09:53:14 +0000 (10:53 +0100)
committerAndy Scherzinger <info@andy-scherzinger.de>
Mon, 9 Nov 2015 09:53:14 +0000 (10:53 +0100)
apks/latest
apks/owncloud-beta-20151109.apk [new file with mode: 0644]
res/xml/preferences.xml
src/com/owncloud/android/files/FileMenuFilter.java
src/com/owncloud/android/ui/activity/Preferences.java
src/com/owncloud/android/ui/fragment/OCFileListFragment.java

index 57d5957..563100e 100644 (file)
@@ -1 +1 @@
-20151105
+20151109
diff --git a/apks/owncloud-beta-20151109.apk b/apks/owncloud-beta-20151109.apk
new file mode 100644 (file)
index 0000000..e770472
Binary files /dev/null and b/apks/owncloud-beta-20151109.apk differ
index da8b7ba..b4f46f9 100644 (file)
                                                        android:title="@string/prefs_instant_upload_path_title"
                                                        android:key="instant_upload_path" />
            <com.owncloud.android.ui.CheckBoxPreferenceWithLongTitle
-                       android:key="instant_uploading"
-               android:title="@string/prefs_instant_upload"
-               android:summary="@string/prefs_instant_upload_summary"/>
-               <com.owncloud.android.ui.PreferenceWithLongSummary
-                       android:dependency="instant_uploading"
-                       android:disableDependentsState="true"
-                       android:title="@string/prefs_instant_upload_path_title"
-                       android:key="instant_upload_path" />
-           <com.owncloud.android.ui.CheckBoxPreferenceWithLongTitle
                        android:dependency="instant_uploading"
                        android:disableDependentsState="true"
                android:title="@string/instant_upload_on_wifi"
                        android:title="@string/instant_video_upload_on_charging"
                        android:key="instant_video_upload_on_charging"/>
        </PreferenceCategory>
-       
-       <PreferenceCategory android:title="@string/prefs_category_more" android:key="more">
-               <!-- DISABLED FOR RELEASE UNTIL FIXED
-           CheckBoxPreference android:key="log_to_file"
-                               android:title="@string/prefs_log_title"
-                               android:summary="@string/prefs_log_summary"/>
-               <Preference             android:key="log_history"
-                               android:title="@string/prefs_log_title_history"
-                               android:summary="@string/prefs_log_summary_history"/ -->
-                        
-    </PreferenceCategory>
 
        <PreferenceCategory android:title="@string/common_category" android:key="common_category">
                <EditTextPreference android:title="@string/pref_cache_size"
        </PreferenceCategory>
 
        <PreferenceCategory android:title="@string/prefs_category_more" android:key="more">
+               <!-- DISABLED FOR RELEASE UNTIL FIXED
+           CheckBoxPreference android:key="log_to_file"
+                               android:title="@string/prefs_log_title"
+                               android:summary="@string/prefs_log_summary"/>
+               <Preference             android:key="log_history"
+                               android:title="@string/prefs_log_title_history"
+                               android:summary="@string/prefs_log_summary_history"/ -->
     <Preference android:title="@string/prefs_help" android:key="help" />
     <Preference android:title="@string/prefs_recommend" android:key="recommend" />
     <Preference android:title="@string/prefs_feedback" android:key="feedback" />
index 917f936..e6638ba 100644 (file)
@@ -244,6 +244,13 @@ public class FileMenuFilter {
             toHide.add(R.id.action_stream_file);
         }
 
+        // SET PICTURE AS
+        if (mFile == null || !mFile.isImage()){
+            toHide.add(R.id.action_set_as_wallpaper);
+        } else {
+            toShow.add(R.id.action_set_as_wallpaper);
+        }
+
     }
 
 }
index 0a22414..7b85fe6 100644 (file)
@@ -463,7 +463,7 @@ public class Preferences extends PreferenceActivity
        pAboutApp = (Preference) findPreference("about_app");
        if (pAboutApp != null) { 
                pAboutApp.setTitle(String.format(getString(R.string.about_android), getString(R.string.app_name)));
-               pAboutApp.setSummary(String.format(getString(R.string.about_version), appVersion));
+               pAboutApp.setSummary(String.format(getString(R.string.about_version), BuildConfig.VERSION_CODE));
        }
 
        loadInstantUploadPath();
@@ -889,7 +889,7 @@ public class Preferences extends PreferenceActivity
         SharedPreferences appPrefs =
                 PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
         mUploadVideoPath = appPrefs.getString("instant_video_upload_path", getString(R.string.instant_upload_path));
-//        mPrefInstantVideoUploadPath.setSummary(mUploadVideoPath);
+        mPrefInstantVideoUploadPath.setSummary(mUploadVideoPath);
     }
 
     /**
index 2f59be4..8bda463 100644 (file)
@@ -562,6 +562,10 @@ public class OCFileListFragment extends ExtendedListFragment {
                     mContainerActivity.getFileOperationsHelper().shareFileWithLink(mTargetFile);
                     return true;
                 }
+                case R.id.action_share_with_users: {
+                    mContainerActivity.getFileOperationsHelper().showShareFile(mTargetFile);
+                    return true;
+                }
                 case R.id.action_open_file_with: {
                     mContainerActivity.getFileOperationsHelper().openFile(mTargetFile);
                     return true;