mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Fix crash when toggling WifiOnly mode when no DATA connection available
This commit is contained in:
parent
ba68b0ee8e
commit
b4587d28cd
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ public class PreferencesFragment extends PreferencesListFragment implements EcCa
|
|||
NetworkInfo eventInfo = cm.getActiveNetworkInfo();
|
||||
|
||||
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||
if (eventInfo.getTypeName().equals("mobile") && lc != null) {
|
||||
if (eventInfo != null && eventInfo.getTypeName() != null && eventInfo.getTypeName().equals("mobile") && lc != null) {
|
||||
lc.setNetworkReachable(!isSettingActivated);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue