package br.augustoicaro.pathfindercombat;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class CharacterUpdateReceiver extends BroadcastReceiver {
private static final String TAG = "PFCombat";
private FragmentBase _base;
public CharacterUpdateReceiver(FragmentBase base) {
_base = base;
}
public void onReceive(Context context, Intent intent) {
String field = (String)intent.getExtras().get("field");
Log.d(TAG, "CharacterUpdateReceiver: got update intent update for field = " + field);
_base.onAfterUpdateCharacter(field);
}
}