// Path: app/src/main/java/com/pddstudio/otgsubs/models/AssetsModificationType.java
// public enum AssetsModificationType implements Serializable {
// 	RENAME,
// 	DELETE
// }
// 
// Path: substratum-packager/src/main/java/com/pddstudio/substratum/packager/models/AssetFileInfo.java
// public class AssetFileInfo implements Serializable {
// 
// 	private AssetsType type;
// 	private String     fileLocation;
// 	private String     fileName;
// 	private String relativeAssetsDestinationLocation;
// 
// 	public AssetFileInfo(AssetsType type, String fileLocation, String fileName) {
// 		this.type = type;
// 		this.fileLocation = fileLocation;
// 		this.fileName = fileName;
// 	}
// 
// 	public AssetsType getType() {
// 		return type;
// 	}
// 
// 	public String getFileLocation() {
// 		return fileLocation;
// 	}
// 
// 	public String getFileName() {
// 		return fileName;
// 	}
// 
// 	public String getRelativeAssetsDestinationLocation() {
// 		return relativeAssetsDestinationLocation;
// 	}
// 
// 	public void setRelativeAssetsDestinationLocation(String relativeAssetsDestinationLocation) {
// 		this.relativeAssetsDestinationLocation = relativeAssetsDestinationLocation;
// 	}
// 
// 	public void setFileName(String fileName) {
// 		this.fileName = fileName;
// 	}
// }


import android.content.Context;
import android.support.annotation.NonNull;
import com.afollestad.materialdialogs.simplelist.MaterialSimpleListAdapter;
import com.afollestad.materialdialogs.simplelist.MaterialSimpleListItem;
import com.pddstudio.otgsubs.R;
import com.pddstudio.otgsubs.models.AssetsModificationType;
import com.pddstudio.substratum.packager.models.AssetFileInfo;
package com.pddstudio.otgsubs.utils;



/**
 * Created by pddstudio on 25/04/2017.
 */

public class DialogUtils {

	private DialogUtils() {}

	public static MaterialSimpleListAdapter createAssetsItemSelectionAdapter(@NonNull Context context, @NonNull MaterialSimpleListAdapter.Callback callback, @NonNull AssetFileInfo assetFileInfo) {
		MaterialSimpleListAdapter adapter = new MaterialSimpleListAdapter(callback);
		/*adapter.add(new MaterialSimpleListItem.Builder(context).content("Rename Item")
															   .iconPaddingDp(4)
															   .icon(R.drawable.ic_mode_edit_24dp)
															   .tag(new TagPair<>(assetFileInfo, AssetsModificationType.RENAME))
															   .build());*/
		//TODO: fix rename action not working properly
		adapter.add(new MaterialSimpleListItem.Builder(context).content("Delete Item")
															   .iconPaddingDp(4)
															   .icon(R.drawable.ic_delete_forever_24dp)
// Path: app/src/main/java/com/pddstudio/otgsubs/models/AssetsModificationType.java
// public enum AssetsModificationType implements Serializable {
// 	RENAME,
// 	DELETE
// }
// 
// Path: substratum-packager/src/main/java/com/pddstudio/substratum/packager/models/AssetFileInfo.java
// public class AssetFileInfo implements Serializable {
// 
// 	private AssetsType type;
// 	private String     fileLocation;
// 	private String     fileName;
// 	private String relativeAssetsDestinationLocation;
// 
// 	public AssetFileInfo(AssetsType type, String fileLocation, String fileName) {
// 		this.type = type;
// 		this.fileLocation = fileLocation;
// 		this.fileName = fileName;
// 	}
// 
// 	public AssetsType getType() {
// 		return type;
// 	}
// 
// 	public String getFileLocation() {
// 		return fileLocation;
// 	}
// 
// 	public String getFileName() {
// 		return fileName;
// 	}
// 
// 	public String getRelativeAssetsDestinationLocation() {
// 		return relativeAssetsDestinationLocation;
// 	}
// 
// 	public void setRelativeAssetsDestinationLocation(String relativeAssetsDestinationLocation) {
// 		this.relativeAssetsDestinationLocation = relativeAssetsDestinationLocation;
// 	}
// 
// 	public void setFileName(String fileName) {
// 		this.fileName = fileName;
// 	}
// }


// Path: app/src/main/java/com/pddstudio/otgsubs/utils/DialogUtils.java
import android.content.Context;
import android.support.annotation.NonNull;
import com.afollestad.materialdialogs.simplelist.MaterialSimpleListAdapter;
import com.afollestad.materialdialogs.simplelist.MaterialSimpleListItem;
import com.pddstudio.otgsubs.R;
import com.pddstudio.otgsubs.models.AssetsModificationType;
import com.pddstudio.substratum.packager.models.AssetFileInfo;

package com.pddstudio.otgsubs.utils;



/**
 * Created by pddstudio on 25/04/2017.
 */

public class DialogUtils {

	private DialogUtils() {}

	public static MaterialSimpleListAdapter createAssetsItemSelectionAdapter(@NonNull Context context, @NonNull MaterialSimpleListAdapter.Callback callback, @NonNull AssetFileInfo assetFileInfo) {
		MaterialSimpleListAdapter adapter = new MaterialSimpleListAdapter(callback);
		/*adapter.add(new MaterialSimpleListItem.Builder(context).content("Rename Item")
															   .iconPaddingDp(4)
															   .icon(R.drawable.ic_mode_edit_24dp)
															   .tag(new TagPair<>(assetFileInfo, AssetsModificationType.RENAME))
															   .build());*/
		//TODO: fix rename action not working properly
		adapter.add(new MaterialSimpleListItem.Builder(context).content("Delete Item")
															   .iconPaddingDp(4)
															   .icon(R.drawable.ic_delete_forever_24dp)
															   .tag(new TagPair<>(assetFileInfo, AssetsModificationType.DELETE))