Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e42a90e authored by Roman Birg's avatar Roman Birg
Browse files

Settings: hide mobile networks for devices with no telephony



Change-Id: I417aa3b9f220d8fa9ba5cd8b7eb81a7bab0c6c69
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 06100d0a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1177,7 +1177,9 @@ public class SettingsActivity extends Activity
                        removeTile = true;
                    }
                } else if (id == R.id.mobile_networks) {
                    if (TelephonyManager.getDefault().getPhoneCount() > 1) {
                    if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
                        removeTile = true;
                    } else if (TelephonyManager.getDefault().getPhoneCount() > 1) {
                        removeTile = true;
                    }
                } else if (id == R.id.msim_mobile_networks) {