mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
Remove network change broadcast receiver
Because no intent filter available/working for wifi hotspot ap.
This commit is contained in:
parent
5d15bed4d2
commit
f7d063b7e0
@ -29,7 +29,6 @@ import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.content.IntentSender;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.pm.PackageManager;
|
||||
@ -416,8 +415,6 @@ public class MainActivity extends BaseActivity implements WebViewCallback,
|
||||
wifiHotspotManager = new WifiHotspotManager(this);
|
||||
|
||||
serviceIntent = new Intent(this, HotspotService.class);
|
||||
|
||||
//initBroadcastReceiverNetworkStateChanged();
|
||||
}
|
||||
|
||||
//End of onCreate
|
||||
@ -976,20 +973,6 @@ public class MainActivity extends BaseActivity implements WebViewCallback,
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
|
||||
private void initBroadcastReceiverNetworkStateChanged() {
|
||||
final IntentFilter filters = new IntentFilter();
|
||||
filters.addAction("android.net.wifi.WIFI_STATE_CHANGED");
|
||||
filters.addAction("android.net.wifi.STATE_CHANGE");
|
||||
broadcastReceiverNetworkState = new BroadcastReceiver() {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
//setIpAccess();
|
||||
}
|
||||
};
|
||||
super.registerReceiver(broadcastReceiverNetworkState, filters);
|
||||
}
|
||||
|
||||
/** Dialog to take user confirmation before deleting all notes */
|
||||
private void showClearAllNotesDialog() {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user