commit | 31eaa2c20ab56f57780076ab4594d069f5e5b38a | [log] [tgz] |
---|---|---|
author | Alex Florescu <alexflo@google.com> | Fri Mar 12 14:58:25 2021 +0000 |
committer | Alex Florescu <alexflo@google.com> | Thu Mar 18 13:40:51 2021 +0000 |
tree | f9457b033217ef6bbff7eca0c74157d95610ef39 | |
parent | ffa06964b1a80e4487bb54cd8b03914d9207e69c [diff] |
Cache value of shouldUseSplitNotificationShade This only changes when the flag value changes (which can happen at any time, but is strictly for development so we can ignore) or the value of the boolean resource changes, which only happens on configuration changed. Instead of checking every time, we can cache the last known value and update on configuration changes. Bug: 182254944 Test: manual + atest SystemUITests Change-Id: Iae54b7680ebfc84c48139bd21e3c7670739802a5