Browse Source

Change names of share features vars

jabarros 9 years ago
parent
commit
93cd2be3bb

+ 2 - 2
res/values/setup.xml

@@ -24,8 +24,8 @@
     
     <!-- Flags to enable/disable some features -->
     <string name = "send_files_to_other_apps">on</string>
-    <string name = "show_share_by_link_section">true</string>
-    <string name = "show_share_with_users_section">true</string>
+    <string name = "share_by_link_feature">on</string>
+    <string name = "share_with_users_feature">on</string>
     
     
     <!-- Colors -->

+ 2 - 2
src/com/owncloud/android/files/FileMenuFilter.java

@@ -182,9 +182,9 @@ public class FileMenuFilter {
 
         // SHARE FILE
         boolean shareByLinkAllowed = (mContext != null  &&
-                mContext.getString(R.string.show_share_by_link_section).equalsIgnoreCase("true"));
+                mContext.getString(R.string.share_by_link_feature).equalsIgnoreCase("on"));
         boolean shareWithUsersAllowed = (mContext != null  &&
-                mContext.getString(R.string.show_share_with_users_section).equalsIgnoreCase("true"));
+                mContext.getString(R.string.share_with_users_feature).equalsIgnoreCase("on"));
 
         OCCapability capability = mComponentsGetter.getStorageManager().getCapability(mAccount.name);
         boolean shareApiEnabled  = capability != null &&

+ 2 - 2
src/com/owncloud/android/ui/fragment/ShareFileFragment.java

@@ -864,8 +864,8 @@ public class ShareFileFragment extends Fragment
         LinearLayout shareWithUsersSection = (LinearLayout) shareView.findViewById(R.id.shareWithUsersSection);
         LinearLayout shareViaLinkSection = (LinearLayout) shareView.findViewById(R.id.shareViaLinkSection);
 
-        boolean shareByLinkAllowed = getActivity().getString(R.string.show_share_by_link_section).equalsIgnoreCase("true");
-        boolean shareWithUsersAllowed = getActivity().getString(R.string.show_share_with_users_section).equalsIgnoreCase("true");
+        boolean shareByLinkAllowed = getActivity().getString(R.string.share_by_link_feature).equalsIgnoreCase("on");
+        boolean shareWithUsersAllowed = getActivity().getString(R.string.share_with_users_feature).equalsIgnoreCase("on");
 
         if (!shareByLinkAllowed) {
             shareViaLinkSection.setVisibility(View.GONE);