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

Commit 72796465 authored by Meng Wang's avatar Meng Wang
Browse files

Expose the last known roaming state

Bug: 168331483
Test: make
Change-Id: I5a4e2f8433b757d980203dbd5e6b52f0f330985d
parent 960fe339
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -259,6 +259,7 @@ public class ImsPhone extends ImsPhoneBase {
    // The helper class to receive and store the MmTel registration status updated.
    private ImsRegistrationCallbackHelper mImsMmTelRegistrationHelper;

    // The roaming state if currently in service, or the last roaming state when was in service.
    private boolean mRoaming = false;

    private boolean mIsInImsEcm = false;
@@ -2442,6 +2443,10 @@ public class ImsPhone extends ImsPhoneBase {
                getBackgroundCall().getState() != Call.State.IDLE);
    }

    public boolean getRoamingState() {
        return mRoaming;
    }

    @Override
    public void dump(FileDescriptor fd, PrintWriter printWriter, String[] args) {
        IndentingPrintWriter pw = new IndentingPrintWriter(printWriter, "  ");