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

Commit 0fafa287 authored by Michael W's avatar Michael W
Browse files

telephony: Make "Do not ask again" functional

* When on WiFi I get a notification telling me emergency services are
  not available with a "Do not ask again" button. This button is not
  functional, thus I am being asked again all the time
* Exporting the receiver finally makes the notification disappear

Change-Id: I32408f08e7c6e29e5fc8b6386129e4f897fd761a
parent 635173d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2016 The Android Open Source Project
 * Copyright (C) 2025 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -178,7 +179,7 @@ public class CarrierServiceStateTracker extends Handler {
            mPhone.getContext().registerReceiver(
                    mActionReceiver,
                    new IntentFilter(ACTION_NEVER_ASK_AGAIN),
                    Context.RECEIVER_NOT_EXPORTED);
                    Context.RECEIVER_EXPORTED);
        }
    }