Fix search users

This commit is contained in:
Mario Danic 2017-03-14 22:59:35 +01:00
parent 2fbc7d05cf
commit f0249be463
4 changed files with 5 additions and 3 deletions

View file

@ -24,7 +24,7 @@ apply plugin: 'pmd'
apply plugin: 'findbugs'
ext {
supportLibraryVersion = '24.0.0'
supportLibraryVersion = '25.0.0'
travisBuild = System.getenv("TRAVIS") == "true"

View file

@ -8,6 +8,7 @@
<string name="account_type">nextcloud</string> <!-- better if was a domain name; but changing it now would require migrate accounts when the app is updated -->
<string name="authority">com.custom.client.provider</string> <!-- better if was the app package with ".provider" appended ; it identifies the provider -->
<string name="users_and_groups_search_authority">com.custom.client.provider.UsersAndGroupsSearch</string>
<string name="users_and_groups_share_with">com.custom.client.provider.UsersAndGroupsSearch.action.SHARE_WITH</string>
<string name="document_provider_authority">com.custom.provider.Documents</string>
<string name="file_provider_authority">com.custom.provider.Files</string>
<string name ="db_file">nextcloud.db</string>

View file

@ -8,6 +8,7 @@
<string name="account_type">nextcloud</string> <!-- better if was a domain name; but changing it now would require migrate accounts when the app is updated -->
<string name="authority">org.nextcloud</string> <!-- better if was the app package with ".provider" appended ; it identifies the provider -->
<string name="users_and_groups_search_authority">com.nextcloud.android.providers.UsersAndGroupsSearchProvider</string>
<string name="users_and_groups_share_with"> com.nextcloud.android.providers.UsersAndGroupsSearchProvider.action.SHARE_WITH</string>
<string name="document_provider_authority">org.nextcloud.documents</string>
<string name="file_provider_authority">org.nextcloud.files</string>
<string name ="db_file">nextcloud.db</string>

View file

@ -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.nextcloud.android.providers.UsersAndGroupsSearchProvider"
android:searchSuggestIntentAction="com.nextcloud.android.providers.UsersAndGroupsSearchProvider.action.SHARE_WITH"
android:searchSuggestAuthority="@string/users_and_groups_search_authority"
android:searchSuggestIntentAction="@string/users_and_groups_share_with"
android:searchSuggestThreshold="1" >
</searchable>