public static void setCustomerActivitiesStatusIcon()

in app/src/main/java/org/apache/fineract/utils/StatusUtils.java [243:278]


    public static void setCustomerActivitiesStatusIcon(Command.Action action, ImageView imageView,
                                                       Context context) {
        switch (action) {
            case ACTIVATE:
                imageView.setImageDrawable(ContextCompat.getDrawable(context,
                        R.drawable.ic_check_circle_black_24dp));
                imageView.setColorFilter(
                        ContextCompat.getColor(context, R.color.status));
                break;
            case CLOSE:
                imageView.setImageDrawable(ContextCompat.getDrawable(context,
                        R.drawable.ic_close_black_24dp));
                imageView.setColorFilter(
                        ContextCompat.getColor(context, R.color.red_dark));
                break;
            case LOCK:
                imageView.setImageDrawable(ContextCompat.getDrawable(context,
                        R.drawable.ic_lock_black_24dp));
                imageView.setColorFilter(
                        ContextCompat.getColor(context, R.color.red_dark));
                break;
            case UNLOCK:
                imageView.setImageDrawable(ContextCompat.getDrawable(context,
                        R.drawable.ic_lock_open_black_24dp));
                imageView.setColorFilter(
                        ContextCompat.getColor(context, R.color.status));
                break;
            case REOPEN:
                imageView.setImageDrawable(ContextCompat.getDrawable(context,
                        R.drawable.ic_lock_open_black_24dp));
                imageView.setColorFilter(
                        ContextCompat.getColor(context, R.color.status));
                break;

        }
    }