diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetStateCache.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetStateCache.java index 6b7af63c8..11bbafb60 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetStateCache.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetStateCache.java @@ -80,8 +80,8 @@ public class NetStateCache { IntentFilter filter = new IntentFilter(); filter.addAction( ConnectivityManager.CONNECTIVITY_ACTION ); - Intent intent = context.registerReceiver( s_receiver, - filter ); + Intent intent = context.getApplicationContext(). + registerReceiver( s_receiver, filter ); s_ifs = new HashSet(); s_haveReceiver = true;