Permalink
Browse files

Add stubs for API 11 SharedPreferences interface methods

  • Loading branch information...
1 parent 8f96a63 commit 05824e5335d6032d1202d87fce6e147a0ffd8a21 @AgentHH AgentHH committed May 14, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/org/connectbot/HostEditorActivity.java
@@ -23,6 +23,7 @@
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import java.util.Map.Entry;
import org.connectbot.bean.HostBean;
@@ -162,6 +163,10 @@ public void apply() {
update.remove(key);
return this;
}
+
+ public android.content.SharedPreferences.Editor putStringSet(String key, Set<String> value) {
+ throw new UnsupportedOperationException("HostEditor Prefs do not support Set<String>");
+ }
}
@@ -197,6 +202,10 @@ public String getString(String key, String defValue) {
return values.get(key);
}
+ public Set<String> getStringSet(String key, Set<String> defValue) {
+ throw new ClassCastException("HostEditor Prefs do not support Set<String>");
+ }
+
protected List<OnSharedPreferenceChangeListener> listeners = new LinkedList<OnSharedPreferenceChangeListener>();
public void registerOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener) {

0 comments on commit 05824e5

Please sign in to comment.