diff options
author | zachh <zachh@google.com> | 2017-08-11 17:29:55 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-14 08:31:49 -0700 |
commit | 55a921ec8458adb4d6139f65270400ff035c472e (patch) | |
tree | f12c561f3c98f4d034a2e8508f0628b70957544c /java/com/android/dialer/binary/common | |
parent | b0c760ee35a5d1b361a39c91b633136c82938240 (diff) |
Warm up shared preferences in App#onCreate for bugfood builds.
This is being moved from DialtactsActivity#onCreate in order to provide better coverage (since App#onCreate is called earlier).
Additionally, to de-risk any impact on release builds, warming up now only happens when strict mode is enabled, i.e. on bugfood builds.
Test: none
PiperOrigin-RevId: 165046087
Change-Id: I2bd5337a59fa5a430480e77986015c61798185e8
Diffstat (limited to 'java/com/android/dialer/binary/common')
-rw-r--r-- | java/com/android/dialer/binary/common/DialerApplication.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/dialer/binary/common/DialerApplication.java b/java/com/android/dialer/binary/common/DialerApplication.java index 0d38541e5..580e0a3a5 100644 --- a/java/com/android/dialer/binary/common/DialerApplication.java +++ b/java/com/android/dialer/binary/common/DialerApplication.java @@ -37,7 +37,7 @@ public abstract class DialerApplication extends Application implements HasRootCo @Override public void onCreate() { Trace.beginSection("DialerApplication.onCreate"); - DialerStrictMode.onApplicationCreate(); + DialerStrictMode.onApplicationCreate(this); super.onCreate(); new BlockedNumbersAutoMigrator( |