move WifiStateChangeReceiver into ".nearby" package
This commit is contained in:
parent
842db03d8a
commit
02669ea31f
@ -61,7 +61,7 @@
|
||||
android:value=".views.main.MainActivity"/>
|
||||
</activity>
|
||||
|
||||
<receiver android:name=".receiver.WifiStateChangeReceiver">
|
||||
<receiver android:name=".nearby.WifiStateChangeReceiver">
|
||||
<intent-filter>
|
||||
<action android:name="android.net.wifi.STATE_CHANGE"/>
|
||||
</intent-filter>
|
||||
|
@ -1,11 +1,10 @@
|
||||
package org.fdroid.fdroid.receiver;
|
||||
package org.fdroid.fdroid.nearby;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.wifi.WifiManager;
|
||||
import org.fdroid.fdroid.Utils;
|
||||
import org.fdroid.fdroid.nearby.WifiStateChangeService;
|
||||
|
||||
public class WifiStateChangeReceiver extends BroadcastReceiver {
|
||||
private static final String TAG = "WifiStateChangeReceiver";
|
@ -37,7 +37,7 @@ import java.util.Locale;
|
||||
* Handle state changes to the device's wifi, storing the required bits.
|
||||
* The {@link Intent} that starts it either has no extras included,
|
||||
* which is how it can be triggered by code, or it came in from the system
|
||||
* via {@link org.fdroid.fdroid.receiver.WifiStateChangeReceiver}, in
|
||||
* via {@link WifiStateChangeReceiver}, in
|
||||
* which case an instance of {@link NetworkInfo} is included.
|
||||
* <p>
|
||||
* The work is done in a {@link Thread} so that new incoming {@code Intents}
|
||||
|
Loading…
x
Reference in New Issue
Block a user