// Overridden from ListPreference
 protected override string GetPersistedString(string defaultReturnValue)
 {
     if (SharedPreferences.Contains(Key))
     {
         var value = GetPersistedInt(0);
         return(value + "");
     }
     else
     {
         return(defaultReturnValue);
     }
 }
Пример #2
0
 public bool Contains(string key, bool roaming = false)
 {
     return(SharedPreferences.Contains(key));
 }