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

Commit 904d8300 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "Make test provider use int for blocked number status" am: 9d03c0c8 am: c6ed56e9

am: 114154c0

Change-Id: Icc6e431540a8140d0b02fa7a31875e40e897592e
parents 84ce17db 114154c0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -528,8 +528,10 @@ public abstract class TelephonyTest {
            switch (method) {
                case BlockedNumberContract.SystemContract.METHOD_SHOULD_SYSTEM_BLOCK_NUMBER:
                    Bundle bundle = new Bundle();
                    bundle.putBoolean(BlockedNumberContract.RES_NUMBER_IS_BLOCKED,
                            mBlockedNumbers.contains(arg));
                    int blockStatus = mBlockedNumbers.contains(arg)
                            ? BlockedNumberContract.STATUS_BLOCKED_IN_LIST
                            : BlockedNumberContract.STATUS_NOT_BLOCKED;
                    bundle.putInt(BlockedNumberContract.RES_BLOCK_STATUS, blockStatus);
                    return bundle;
                case BlockedNumberContract.SystemContract.METHOD_NOTIFY_EMERGENCY_CONTACT:
                    mNumEmergencyContactNotifications++;