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

Skip to content
Commit d922de0e authored by shuoq's avatar shuoq Committed by sqian
Browse files

Cache the getActiveSubscriptionInfoList() in SubscriptionController

To fast reading the active subscription info list (the subinfo list
currently in the phone slotes), a cache is created and maintained inside
the SubscriptionController.

To protect cache, refresh the content of the cache every time there
is an update on the database, populate/regenerate the cache with
the updated information and thereby the reference of the cache object
will be changed.

When getting an Active Subscription Info list, get a deep copy of the
cache instead of its reference.

Test: Manual
Bug: 29877775
Change-Id: Ib26c550d63d4befa6f71ef82dfd6d73579b17e24
Merged-In: Ib26c550d63d4befa6f71ef82dfd6d73579b17e24
parent 86efdde1
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