Skip to content

Commit b2224e6

Browse files
collinjacksonEdwinRomelta
authored andcommitted
Revert "Connectivity deprecation fix"
This reverts commit 7d62e8c which landed on the wrong branch.
1 parent a5451f6 commit b2224e6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/connectivity/connectivity/android/src/main/java/io/flutter/plugins/connectivity/ConnectivityBroadcastReceiver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ConnectivityBroadcastReceiver extends BroadcastReceiver
3333
@Override
3434
public void onListen(Object arguments, EventChannel.EventSink events) {
3535
this.events = events;
36-
context.registerReceiver(this, new IntentFilter(ConnectivityManager.CONNECTIVITY_CHANGE));
36+
context.registerReceiver(this, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
3737
}
3838

3939
@Override

packages/connectivity/connectivity/lib/connectivity.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ class Connectivity {
3333
static ConnectivityPlatform get _platform => ConnectivityPlatform.instance;
3434

3535
/// Fires whenever the connectivity state changes.
36-
///
37-
/// Apps targeting Android N do not receive notifications in the background.
3836
Stream<ConnectivityResult> get onConnectivityChanged {
3937
return _platform.onConnectivityChanged;
4038
}

0 commit comments

Comments
 (0)