mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 09:33:39 +02:00
Use local broadcast receivers
This commit is contained in:
@@ -5153,7 +5153,10 @@ public class FragmentMessages extends FragmentBase
|
||||
cm.registerNetworkCallback(builder.build(), networkCallback);
|
||||
|
||||
updateAirplaneMode(ConnectionHelper.airplaneMode(context));
|
||||
context.registerReceiver(airplanemode, new IntentFilter(Intent.ACTION_AIRPLANE_MODE_CHANGED));
|
||||
ContextCompat.registerReceiver(context,
|
||||
airplanemode,
|
||||
new IntentFilter(Intent.ACTION_AIRPLANE_MODE_CHANGED),
|
||||
ContextCompat.RECEIVER_NOT_EXPORTED);
|
||||
|
||||
boolean isIgnoring = !Boolean.FALSE.equals(Helper.isIgnoringOptimizations(context));
|
||||
//boolean canSchedule = AlarmManagerCompatEx.canScheduleExactAlarms(context);
|
||||
|
||||
Reference in New Issue
Block a user