// Path: app/src/main/java/com/bedrock/padder/helper/WindowHelper.java
// public static String getStringFromIdWithFallback(String id, Context context) {
//     try {
//         Class res = R.string.class;
//         Field field = res.getField(id);
//         return context.getResources().getString(field.getInt(null));
//     } catch (Exception e) {
//         Log.e("getStringFromId", "Failure to get string from id [" + id + "]");
//         return id;
//     }
//     //from : https://daniel-codes.blogspot.com/2009/12/dynamically-retrieving-resources-in.html
// }


import android.content.Context;
import static com.bedrock.padder.helper.WindowHelper.getStringFromIdWithFallback;
    private Boolean isRunnableWithAnim;

    public Item(String text, String hint) {
        this.text = text;
        this.hint = hint;
        this.isHintVisible = true;
        this.imageId = text;
        this.isRunnableWithAnim = false;
    }

    public Item(String text, String hint, Boolean isHintVisible) {
        this.text = text;
        this.hint = hint;
        this.isHintVisible = isHintVisible;
        this.imageId = text;
        this.isRunnableWithAnim = false;
    }

    public Item(String text, String hint, Boolean isHintVisible, String imageId) {
        this.text = text;
        this.hint = hint;
        this.isHintVisible = isHintVisible;
        this.imageId = imageId;
    }

    public String getText() {
        return text;
    }

    public String getText(Context context) {
// Path: app/src/main/java/com/bedrock/padder/helper/WindowHelper.java
// public static String getStringFromIdWithFallback(String id, Context context) {
//     try {
//         Class res = R.string.class;
//         Field field = res.getField(id);
//         return context.getResources().getString(field.getInt(null));
//     } catch (Exception e) {
//         Log.e("getStringFromId", "Failure to get string from id [" + id + "]");
//         return id;
//     }
//     //from : https://daniel-codes.blogspot.com/2009/12/dynamically-retrieving-resources-in.html
// }


// Path: app/src/main/java/com/bedrock/padder/model/about/Item.java
import android.content.Context;
import static com.bedrock.padder.helper.WindowHelper.getStringFromIdWithFallback;

    private Boolean isRunnableWithAnim;

    public Item(String text, String hint) {
        this.text = text;
        this.hint = hint;
        this.isHintVisible = true;
        this.imageId = text;
        this.isRunnableWithAnim = false;
    }

    public Item(String text, String hint, Boolean isHintVisible) {
        this.text = text;
        this.hint = hint;
        this.isHintVisible = isHintVisible;
        this.imageId = text;
        this.isRunnableWithAnim = false;
    }

    public Item(String text, String hint, Boolean isHintVisible, String imageId) {
        this.text = text;
        this.hint = hint;
        this.isHintVisible = isHintVisible;
        this.imageId = imageId;
    }

    public String getText() {
        return text;
    }

    public String getText(Context context) {
        return getStringFromIdWithFallback(getText(), context);