public void readBucketsFromPrefs(){
  SharedPreferences prefs=mContext.getSharedPreferences(SHARED_PREFS,0);
  Set<String> buckets=prefs.getStringSet(PREF_BUCKETS_IDS,new TreeSet<String>());
  mBuckets.clear();
  for (  String bucketId : buckets) {
    AutoMixBucket bucket=restoreBucketFromId(bucketId);
    mBuckets.add(bucket);
  }
}

public void readBucketsFromPrefs ( ) { SharedPreferences prefs = mContext . getSharedPreferences ( SHARED_PREFS , 0 ) ; Set < String > buckets = prefs . getStringSet ( PREF_BUCKETS_IDS , new TreeSet < String > ( ) ) ; mBuckets . clear ( ) ; for ( String bucketId : buckets ) { AutoMixBucket bucket = restoreBucketFromId ( bucketId ) ; mBuckets . add ( bucket ) ; } }
restore the automix buckets stored in sharedpreferences
