/*
 * Copyright 2015 Ayuget
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.ayuget.redface.ui.hfr;

import com.ayuget.redface.R;
import com.ayuget.redface.data.api.model.Category;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

public class HFRIcons {
    private static final Map<Integer, Integer> categoriesIcons;

    static {
        Map<Integer, Integer> category2Icon = new LinkedHashMap<>();
        category2Icon.put(1, R.drawable.ic_action_memory);
        category2Icon.put(2, R.drawable.ic_action_wrench);
        category2Icon.put(3, R.drawable.ic_action_videocam);
        category2Icon.put(4, R.drawable.ic_action_windows);
        category2Icon.put(5, R.drawable.ic_action_gamepad);
        category2Icon.put(6, R.drawable.ic_action_shopping_cart);
        category2Icon.put(8, R.drawable.ic_action_school);
        category2Icon.put(9, R.drawable.ic_action_public);
        category2Icon.put(10, R.drawable.ic_action_code_fork);
        category2Icon.put(11, R.drawable.ic_action_linux);
        category2Icon.put(12, R.drawable.ic_action_paint_brush);
        category2Icon.put(13, R.drawable.ic_action_people);
        category2Icon.put(14, R.drawable.ic_action_camera_alt);
        category2Icon.put(15, R.drawable.ic_action_laptop_mac);
        category2Icon.put(16, R.drawable.ic_action_desktop_windows);
        category2Icon.put(21, R.drawable.ic_action_storage);
        category2Icon.put(22, R.drawable.ic_action_cloud);
        category2Icon.put(23, R.drawable.ic_action_smartphone);
        category2Icon.put(25, R.drawable.ic_action_apple);
        category2Icon.put(30, R.drawable.ic_developer_board_white_24dp);
        category2Icon.put(31, R.drawable.ic_shopping_basket_white_24dp);
        categoriesIcons = Collections.unmodifiableMap(category2Icon);
    }

    public static int getCategoryIcon(Category category) {
        if(category != null && categoriesIcons.containsKey(category.id())) {
            return categoriesIcons.get(category.id());
        }
        else {
            return R.drawable.ic_action_label;
        }
    }
}

@@ -2265,32 +2265,93 @@
 et_white_24dp);%0A
+        category2Icon.put(0, R.drawable.ic_action_moderate);%0A
         categori
@@ -2480,16 +2480,17 @@
       if
+ 
 (categor
@@ -2612,24 +2612,16 @@
        %7D
-%0A       
  else %7B%0A

Add icon for cat0