package com.iic.mokojin.presenters;

import android.content.Context;

import com.iic.mokojin.R;

/**
 * Created by yon on 3/3/15.
 */
public class CharacterPresenter {
    
    public static final int DEFAULT_IMAGE_RESOURCE = R.drawable.player_0;
    
    public static int getImageResource(Context context, com.iic.mokojin.models.Character character){
        if (character == null) return DEFAULT_IMAGE_RESOURCE;
        String resourceId = "player_".concat(String.valueOf(character.getCharacterId()));
        String packageName = context.getPackageName();
        packageName = "com.iic.mokojin";
        return context.getResources().getIdentifier(resourceId, "drawable", packageName);
    }

}

@@ -502,104 +502,8 @@
 ));%0A
-        String packageName = context.getPackageName();%0A        packageName = %22com.iic.mokojin%22;%0A
     
@@ -574,17 +574,28 @@
 wable%22, 
-p
+context.getP
 ackageNa
@@ -596,16 +596,18 @@
 kageName
+()
 );%0A    %7D

revert some useless changes