mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Prevent NPE
This commit is contained in:
parent
51fc199004
commit
ab0c6481a2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue