I use Otto event bus to subscribe for Volley Requests. I want to use this generic class but the wrong fragment (subscriber) tries to handle the event. Is it possible to use a generic class or is randomly every subscriber of the VolleyResultEvent, independent of the generic type, called?
public class VolleyResultEvent<T> {
public final VolleyResult result;
public final T content;
public VolleyResultEvent(VolleyResult result, T content) {
this.result = result;
this.content = content;
}
public enum VolleyResult {
SUCCESS, ERROR
}
}