content: package com.alium.orin.model.smartplaylist;
  
  import android.content.Context;
  import android.os.Parcel;
  import android.support.annotation.NonNull;
  
  import com.alium.orin.model.Song;
  import com.alium.orin.R;
  import com.alium.orin.loader.SongLoader;
  
  import java.util.ArrayList;
  
  public class ShuffleAllPlaylist extends AbsSmartPlaylist {
  
      public ShuffleAllPlaylist(@NonNull Context context) {
          super(context.getString(R.string.action_shuffle_all), R.drawable.ic_shuffle_white_24dp);
      }
  
      @NonNull
      @Override
      public ArrayList<Song> getSongs(@NonNull Context context) {
          return SongLoader.getAllSongs(context);
      }
  
      @Override
      public void clear(@NonNull Context context) {
          // Shuffle all is not a real "Smart Playlist"
      }
  
      @Override
      public int describeContents() {
          return 0;
      }
  
      @Override
      public void writeToParcel(Parcel dest, int flags) {
          super.writeToParcel(dest, flags);
      }
  
      protected ShuffleAllPlaylist(Parcel in) {
          super(in);
      }
  
      public static final Creator<ShuffleAllPlaylist> CREATOR = new Creator<ShuffleAllPlaylist>() {
          public ShuffleAllPlaylist createFromParcel(Parcel source) {
              return new ShuffleAllPlaylist(source);
          }
  
          public ShuffleAllPlaylist[] newArray(int size) {
              return new ShuffleAllPlaylist[size];
          }
      };
  }
  