use of com.fitpay.android.paymentdevice.callbacks.ConnectionListener in project fitpay-android-sdk by fitpay.
the class NotificationsTest method init.
@BeforeClass
@SuppressWarnings("unchecked")
public static void init() {
listener = new ConnectionListener() {
@Override
public void onDeviceStateChanged(@Connection.State int state) {
log("checkNotification receive:" + state);
testState = state;
}
};
manager = NotificationManager.getInstance();
listeners = (List<Listener>) getPrivateField(manager, "mListeners");
subscriptions = (ConcurrentHashMap<Class, Subscription>) getPrivateField(manager, "mSubscriptions");
commands = (ConcurrentHashMap<Class, List<Command>>) getPrivateField(manager, "mCommands");
}
Aggregations