Skip to content

Commit

Permalink
minor search provider config
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyScherzinger committed Jun 9, 2016
1 parent 3521017 commit c9a3397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions res/xml/users_and_groups_searchable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/app_name"
android:hint="@string/search_users_and_groups_hint"
android:searchSuggestAuthority="com.owncloud.android.providers.UsersAndGroupsSearchProvider"
android:searchSuggestIntentAction="com.owncloud.android.providers.UsersAndGroupsSearchProvider.action.SHARE_WITH"
android:searchSuggestAuthority="com.nextcloud.android.providers.UsersAndGroupsSearchProvider"
android:searchSuggestIntentAction="com.nextcloud.android.providers.UsersAndGroupsSearchProvider.action.SHARE_WITH"
android:searchSuggestThreshold="1" >
</searchable>
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class UsersAndGroupsSearchProvider extends ContentProvider {
private static final int RESULTS_PER_PAGE = 50;
private static final int REQUESTED_PAGE = 1;

public static final String AUTHORITY = UsersAndGroupsSearchProvider.class.getCanonicalName();
public static final String AUTHORITY = "com.nextcloud.android.providers.UsersAndGroupsSearchProvider";
public static final String ACTION_SHARE_WITH = AUTHORITY + ".action.SHARE_WITH";

public static final String CONTENT = "content";
Expand Down Expand Up @@ -117,7 +117,7 @@ public boolean onCreate() {
* Reference: http://developer.android.com/guide/topics/search/adding-custom-suggestions.html#CustomContentProvider
*
* @param uri Content {@link Uri}, formattted as
* "content://com.owncloud.android.providers.UsersAndGroupsSearchProvider/" +
* "content://com.nextcloud.android.providers.UsersAndGroupsSearchProvider/" +
* {@link android.app.SearchManager#SUGGEST_URI_PATH_QUERY} + "/" + 'userQuery'
* @param projection Expected to be NULL.
* @param selection Expected to be NULL.
Expand Down

0 comments on commit c9a3397

Please sign in to comment.