package com.example.profbola.bakingtime.utils;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by prof.BOLA on 7/6/2017.
 */

public class RecipeUtils {

    public static int getResourceIdFromName(Context context, String name) {
        return context.getResources().getIdentifier(name, "drawable", context.getPackageName());
    }

    public static CharSequence formatServings(int servings) {
        return String.format("Served: %d", servings);
    }

    public interface IsPersistable<T> {

        List<T> consumeCusor(Cursor cursor);

    }
}

@@ -372,24 +372,93 @@
 ing name) %7B%0A
+        String imageUrl = name.replaceAll(%22%5C%5Cs%22, %22_%22).toLowerCase();%0A
         retu
@@ -497,20 +497,24 @@
 ntifier(
-name
+imageUrl
 , %22drawa

Move local image logic to helper method