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

Commit 739e89c8 authored by Brad Ebinger's avatar Brad Ebinger Committed by Gerrit Code Review
Browse files

Merge "Adds better logging for ImsFeature features"

parents 85d41f4f b684d1fb
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -556,8 +556,9 @@ public class MmTelFeatureConnection {
        public void imsStatusChanged(int slotId, int feature, int status) {
            mExecutor.execute(() -> {
                synchronized (mLock) {
                    Log.i(TAG, "imsStatusChanged: slot: " + slotId + " feature: " + feature +
                            " status: " + status);
                    Log.i(TAG, "imsStatusChanged: slot: " + slotId + " feature: "
                            + ImsFeature.FEATURE_LOG_MAP.get(feature) +
                            " status: " + ImsFeature.STATE_LOG_MAP.get(status));
                    if (mSlotId == slotId && feature == ImsFeature.FEATURE_MMTEL) {
                        mFeatureStateCached = status;
                        if (mStatusCallback != null) {
@@ -900,16 +901,16 @@ public class MmTelFeatureConnection {
            }
        }
        // Don't synchronize on Binder call.
        Integer status = retrieveFeatureState();
        Integer state = retrieveFeatureState();
        synchronized (mLock) {
            if (status == null) {
            if (state == null) {
                return ImsFeature.STATE_UNAVAILABLE;
            }
            // Cache only non-null value for feature status.
            mFeatureStateCached = status;
            mFeatureStateCached = state;
        }
        Log.i(TAG, "getFeatureState - returning " + status);
        return status;
        Log.i(TAG, "getFeatureState - returning " + ImsFeature.STATE_LOG_MAP.get(state));
        return state;
    }

    /**