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

Commit 7a917da7 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Fix notification airplane mode toggle to send the proper state, in turn...

Merge "Fix notification airplane mode toggle to send the proper state, in turn fixing toggling of 4G when entering/leaving airplane mode." into gingerbread
parents 0224fbb9 ae24e8a3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -39,7 +39,8 @@ public class AirplaneButton extends PowerButton {
            Settings.System.AIRPLANE_MODE_ON, state ? 0 : 1);
        // notify change
        Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
        intent.putExtra("state", state);
        // Reverse state when sending the intent, since we grabbed it before the toggle.
        intent.putExtra("state", !state);
        context.sendBroadcast(intent);
    }