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

Skip to content
Commit 4030b617 authored by chiachangwang's avatar chiachangwang Committed by Cherrypicker Worker
Browse files

Use PersistableBundle.getInt(String, int) with default value parameter

The default value for PersistableBundle.getInt(String) is 0. This
value is a valid value for the KEY_PREFERRED_IKE_PROTOCOL_INT
setting which is PREFERRED_IKE_PROTOCOL_AUTO. But the preferred
design now is to use IPv4 instead of AUTO. The default value for
getting KEY_PREFERRED_IKE_PROTOCOL_INT should be explicitly set
to an invalid value so that the flow will go into the default
case as expectation.

Bug: 269714970
Bug: 284246686
Test: m ; flash and check the value
(cherry picked from https://android-review.googlesource.com/q/commit:49f9216a1255b1891e20f85036d913270b4e01ce)
Merged-In: Icf83ec1a50972b2d9ce7d168dad75dd9aa3cf1bb
Change-Id: Icf83ec1a50972b2d9ce7d168dad75dd9aa3cf1bb
parent 878b61b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment