mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
remove deprecated broadcast receiver
This commit is contained in:
parent
57f0fbbbd8
commit
88a04d3ce5
1 changed files with 0 additions and 17 deletions
|
@ -1,17 +0,0 @@
|
|||
package com.newsblur.service;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
public class NetStateReceiver extends BroadcastReceiver {
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
// poke the sync service when network state changes, in case we were offline
|
||||
if (!NBSyncService.OfflineNow) return;
|
||||
Intent i = new Intent(context, NBSyncService.class);
|
||||
context.startService(i);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue