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

Commit 2f70cc20 authored by Piaf's avatar Piaf Committed by kmobs
Browse files

Bug Fix: Mobile Data was not disabled if toggle also to 2G mode

parent 13207b05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,8 +46,8 @@ public class MobileDataButton extends WidgetButton {

		ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
		if (enabled) {
			if (preferences.getBoolean(WidgetSettings.AUTO_DISABLE_3G, false)) {
			cm.setMobileDataEnabled(false);
			if (preferences.getBoolean(WidgetSettings.AUTO_DISABLE_3G, false)) {
				NetworkModeButton.getInstance().toggleState(context,SettingsAppWidgetProvider.STATE_DISABLED);
			}
		} else {