Remove share_group_indicator string
authormasensio <masensio@solidgear.es>
Wed, 21 Oct 2015 07:40:39 +0000 (09:40 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 30 Oct 2015 15:39:23 +0000 (16:39 +0100)
res/values/strings.xml
src/com/owncloud/android/ui/adapter/ShareUserListAdapter.java
src/com/owncloud/android/ui/fragment/SearchFragment.java
src/com/owncloud/android/ui/fragment/ShareFileFragment.java

index 6e8bf2d..e6e2303 100644 (file)
     <string name="share_no_users">No data shared with users yet</string>
     <string name="share_add_user_or_group">Add User or Group</string>
     <string name="share_search">Search</string>
     <string name="share_no_users">No data shared with users yet</string>
     <string name="share_add_user_or_group">Add User or Group</string>
     <string name="share_search">Search</string>
-    <string name="share_group_indicator">(group)</string>
 
     <string name="search_users_and_groups_hint">Search users and groups</string>
     <string name="share_group_clarification">%1$s (group)</string>
 
     <string name="search_users_and_groups_hint">Search users and groups</string>
     <string name="share_group_clarification">%1$s (group)</string>
index 8989a97..76a804f 100644 (file)
@@ -75,7 +75,7 @@ public class ShareUserListAdapter extends ArrayAdapter {
             TextView userName = (TextView) view.findViewById(R.id.userOrGroupName);
             String name = share.getSharedWithDisplayName();
             if (share.getShareType() == ShareType.GROUP) {
             TextView userName = (TextView) view.findViewById(R.id.userOrGroupName);
             String name = share.getSharedWithDisplayName();
             if (share.getShareType() == ShareType.GROUP) {
-                name = name +  mContext.getResources().getString(R.string.share_group_indicator);
+                name = getContext().getString(R.string.share_group_clarification, name);
             }
             userName.setText(name);
 
             }
             userName.setText(name);
 
index 06bddff..c946ee0 100644 (file)
@@ -2,6 +2,7 @@
  *   ownCloud Android client application
  *
  *   @author masensio
  *   ownCloud Android client application
  *
  *   @author masensio
+ *   @author David A. Velasco
  *   Copyright (C) 2015 ownCloud Inc.
  *
  *   This program is free software: you can redistribute it and/or modify
  *   Copyright (C) 2015 ownCloud Inc.
  *
  *   This program is free software: you can redistribute it and/or modify
index 13c17c5..38deb99 100644 (file)
@@ -244,6 +244,7 @@ public class ShareFileFragment extends Fragment {
         });
     }
 
         });
     }
 
+    // Call to Unshare operation
     private void unshareWith(OCShare share){
         OCFile file = ((FileActivity) getActivity()).getFile();
 
     private void unshareWith(OCShare share){
         OCFile file = ((FileActivity) getActivity()).getFile();