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

Commit b9826c50 authored by lucaslin's avatar lucaslin
Browse files

Reduce the calling times of getCustomizedContextOrDefault()

In the current design, the getCustomizedContextOrDefault() will
be called for 6 times indirectly in the constructor of
NetworkMonitor.
Have a mCustomizedContext and get the value by calling
getCustomizedContextOrDefault() for one time to improve the
design.

Bug: 159093739
Test: 1. atest NetworkStackTests:NetworkMonitorTest
      2. atest NetworkStackNextTests:NetworkMonitorTest
Change-Id: Ie87df3130afc50a000af58bc638f04a008c4fa3d
parent 8467e54f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment