summaryrefslogtreecommitdiffstats
path: root/java/com/android
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/android')
-rw-r--r--java/com/android/dialer/main/impl/OldMainActivityPeer.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/com/android/dialer/main/impl/OldMainActivityPeer.java b/java/com/android/dialer/main/impl/OldMainActivityPeer.java
index ee0dad5b8..293ec9563 100644
--- a/java/com/android/dialer/main/impl/OldMainActivityPeer.java
+++ b/java/com/android/dialer/main/impl/OldMainActivityPeer.java
@@ -1077,6 +1077,18 @@ public class OldMainActivityPeer implements MainActivityPeer, FragmentUtilListen
this.context = context;
this.fragmentManager = fragmentManager;
this.fab = fab;
+ preloadCallLogFragment();
+ }
+
+ private void preloadCallLogFragment() {
+ if (ConfigProviderBindings.get(context).getBoolean("nui_preload_call_log", true)) {
+ CallLogFragment fragment = new CallLogFragment();
+ fragmentManager
+ .beginTransaction()
+ .add(R.id.fragment_container, fragment, CALL_LOG_TAG)
+ .hide(fragment)
+ .commit();
+ }
}
@Override