Skip to content

Commit

Permalink
Set minimum of 4 characters to search for sharees in server, and maxi…
Browse files Browse the repository at this point in the history
…mum of 30 sharees per response
  • Loading branch information
davivel authored and davigonz committed Oct 3, 2017
1 parent aa215af commit 0abefc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion res/xml/users_and_groups_searchable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
android:hint="@string/search_users_and_groups_hint"
android:searchSuggestAuthority="@string/search_suggest_authority"
android:searchSuggestIntentAction="@string/search_suggest_intent_action"
android:searchSuggestThreshold="1" >
android:searchSuggestThreshold="4" >
</searchable>
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class UsersAndGroupsSearchProvider extends ContentProvider {

private static final int SEARCH = 1;

private static final int RESULTS_PER_PAGE = 50;
private static final int RESULTS_PER_PAGE = 30;
private static final int REQUESTED_PAGE = 1;

public static final String CONTENT = "content";
Expand Down Expand Up @@ -163,7 +163,6 @@ public Cursor query(Uri uri, String[] projection, String selection, String[] sel
private Cursor searchForUsersOrGroups(Uri uri) {
MatrixCursor response = null;


String userQuery = uri.getLastPathSegment().toLowerCase();


Expand Down

0 comments on commit 0abefc9

Please sign in to comment.