File tree 1 file changed +2
-3
lines changed
rx_gcm/src/main/java/rx_gcm/internal
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 27
27
import rx .Subscriber ;
28
28
import rx .android .schedulers .AndroidSchedulers ;
29
29
import rx .functions .Action1 ;
30
+ import rx .functions .Actions ;
30
31
import rx .schedulers .Schedulers ;
31
32
import rx_gcm .GcmReceiverData ;
32
33
import rx_gcm .GcmReceiverUIBackground ;
@@ -185,9 +186,7 @@ void onNotificationReceived(String from, Bundle payload) {
185
186
}
186
187
}
187
188
})
188
- .subscribe (new Action1 <Message >() {
189
- @ Override public void call (Message message ) {}
190
- }, new Action1 <Throwable >() {
189
+ .subscribe (Actions .empty (), new Action1 <Throwable >() {
191
190
@ Override public void call (Throwable throwable ) {
192
191
String message = "Error thrown from GcmReceiverData subscription. Cause exception: " + throwable .getMessage ();
193
192
Log .e ("RxGcm" , message );
You can’t perform that action at this time.
0 commit comments