1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Prevent NPE

This commit is contained in:
M66B 2024-02-24 21:14:46 +01:00
parent 51fc199004
commit ab0c6481a2

View file

@ -1474,7 +1474,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
private ConnectivityManager.NetworkCallback networkCallback = new ConnectivityManager.NetworkCallback() {
@Override
public void onAvailable(Network network) {
view.post(new Runnable() {
getMainHandler().post(new Runnable() {
@Override
public void run() {
updateInternet(true);
@ -1484,7 +1484,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
@Override
public void onLost(@NonNull Network network) {
view.post(new Runnable() {
getMainHandler().post(new Runnable() {
@Override
public void run() {
updateInternet(false);