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

Skip to content
Commit 1234d318 authored by Treehugger Robot's avatar Treehugger Robot Committed by Remi NGUYEN VAN
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
Original-Change: https://android-review.googlesource.com/1335695
Merged-In: Ie87df3130afc50a000af58bc638f04a008c4fa3d
Change-Id: Ie87df3130afc50a000af58bc638f04a008c4fa3d
parent e8bc65e8
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