Эх сурвалжийг харах

minor search provider config

Andy Scherzinger 8 жил өмнө
parent
commit
c9a3397aac

+ 2 - 2
res/xml/users_and_groups_searchable.xml

@@ -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>

+ 2 - 2
src/com/owncloud/android/providers/UsersAndGroupsSearchProvider.java

@@ -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";
@@ -117,7 +117,7 @@ public class UsersAndGroupsSearchProvider extends ContentProvider {
      * 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.