aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-11-17 19:42:22 -0800
committerScott Jackson <daneren2005@gmail.com>2012-11-17 19:42:22 -0800
commit29c6b451651d2fcaa1c5b17b0ba417ef34b41cc4 (patch)
tree70f04f0a770d2d13698889a4b1134ec3f8c0ba2a /subsonic-android/src
parent744f349ecf91ddbd059d5c0e8d154c62829b3e6b (diff)
downloaddsub-29c6b451651d2fcaa1c5b17b0ba417ef34b41cc4.tar.gz
dsub-29c6b451651d2fcaa1c5b17b0ba417ef34b41cc4.tar.bz2
dsub-29c6b451651d2fcaa1c5b17b0ba417ef34b41cc4.zip
Renamed SearchSuggestionProvider1 to DsubSearchProvider
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/QueryReceiverActivity.java6
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java4
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/VoiceQueryReceiverActivity.java6
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/provider/DSubSearchProvider.java (renamed from subsonic-android/src/github/daneren2005/dsub/provider/SearchSuggestionProvider1.java)6
4 files changed, 11 insertions, 11 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/QueryReceiverActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/QueryReceiverActivity.java
index fcce2de9..15d0c6a6 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/QueryReceiverActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/QueryReceiverActivity.java
@@ -26,7 +26,7 @@ import android.os.Bundle;
import android.provider.SearchRecentSuggestions;
import github.daneren2005.dsub.util.Constants;
import github.daneren2005.dsub.util.Util;
-import github.daneren2005.dsub.provider.SearchSuggestionProvider1;
+import github.daneren2005.dsub.provider.DSubSearchProvider;
/**
* Receives search queries and forwards to the SelectAlbumActivity.
@@ -42,8 +42,8 @@ public class QueryReceiverActivity extends Activity {
String query = getIntent().getStringExtra(SearchManager.QUERY);
if (query != null) {
- SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this, SearchSuggestionProvider1.AUTHORITY,
- SearchSuggestionProvider1.MODE);
+ SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this, DSubSearchProvider.AUTHORITY,
+ DSubSearchProvider.MODE);
suggestions.saveRecentQuery(query, null);
Intent intent = new Intent(QueryReceiverActivity.this, SearchActivity.class);
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java
index 82b3cc05..086b48ca 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/SettingsActivity.java
@@ -28,7 +28,7 @@ import android.preference.PreferenceScreen;
import android.provider.SearchRecentSuggestions;
import android.util.Log;
import github.daneren2005.dsub.R;
-import github.daneren2005.dsub.provider.SearchSuggestionProvider1;
+import github.daneren2005.dsub.provider.DSubSearchProvider;
import github.daneren2005.dsub.service.DownloadService;
import github.daneren2005.dsub.service.DownloadServiceImpl;
import github.daneren2005.dsub.service.MusicService;
@@ -103,7 +103,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer
findPreference("clearSearchHistory").setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
- SearchRecentSuggestions suggestions = new SearchRecentSuggestions(SettingsActivity.this, SearchSuggestionProvider1.AUTHORITY, SearchSuggestionProvider1.MODE);
+ SearchRecentSuggestions suggestions = new SearchRecentSuggestions(SettingsActivity.this, DSubSearchProvider.AUTHORITY, DSubSearchProvider.MODE);
suggestions.clearHistory();
Util.toast(SettingsActivity.this, R.string.settings_search_history_cleared);
return false;
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/VoiceQueryReceiverActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/VoiceQueryReceiverActivity.java
index dba6793b..5cda9ee5 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/VoiceQueryReceiverActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/VoiceQueryReceiverActivity.java
@@ -26,7 +26,7 @@ import android.os.Bundle;
import android.provider.SearchRecentSuggestions;
import github.daneren2005.dsub.util.Constants;
import github.daneren2005.dsub.util.Util;
-import github.daneren2005.dsub.provider.SearchSuggestionProvider1;
+import github.daneren2005.dsub.provider.DSubSearchProvider;
/**
* Receives voice search queries and forwards to the SearchActivity.
@@ -44,8 +44,8 @@ public class VoiceQueryReceiverActivity extends Activity {
String query = getIntent().getStringExtra(SearchManager.QUERY);
if (query != null) {
- SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this, SearchSuggestionProvider1.AUTHORITY,
- SearchSuggestionProvider1.MODE);
+ SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this, DSubSearchProvider.AUTHORITY,
+ DSubSearchProvider.MODE);
suggestions.saveRecentQuery(query, null);
Intent intent = new Intent(VoiceQueryReceiverActivity.this, SearchActivity.class);
diff --git a/subsonic-android/src/github/daneren2005/dsub/provider/SearchSuggestionProvider1.java b/subsonic-android/src/github/daneren2005/dsub/provider/DSubSearchProvider.java
index 87560e96..5ddec0f4 100644
--- a/subsonic-android/src/github/daneren2005/dsub/provider/SearchSuggestionProvider1.java
+++ b/subsonic-android/src/github/daneren2005/dsub/provider/DSubSearchProvider.java
@@ -25,12 +25,12 @@ import android.content.SearchRecentSuggestionsProvider;
*
* @author Sindre Mehus
*/
-public class SearchSuggestionProvider1 extends SearchRecentSuggestionsProvider {
+public class DSubSearchProvider extends SearchRecentSuggestionsProvider {
- public static final String AUTHORITY = SearchSuggestionProvider1.class.getName();
+ public static final String AUTHORITY = DSubSearchProvider.class.getName();
public static final int MODE = DATABASE_MODE_QUERIES;
- public SearchSuggestionProvider1() {
+ public DSubSearchProvider() {
setupSuggestions(AUTHORITY, MODE);
}
} \ No newline at end of file