import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
public class DeanDecode {
private static ArrayList<Template> arrayList = null;
<BUG>public static String decode(Drawable drawable) {
if (drawable == null) return "";
return decode(((BitmapDrawable) drawable).getBitmap());
}</BUG>
public static String decode(Bitmap bitmap) {

import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
public class DeanDecode {
private static ArrayList<Template> arrayList = null;
public static String decode(Drawable drawable) {
try {
if (drawable == null) return "";
return decode(((BitmapDrawable) drawable).getBitmap());
}
catch (Exception | Error e) {return "";}
}
public static String decode(Bitmap bitmap) {
