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

Commit 4865a35f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Preload call log fragment on app start."

parents a109ed80 58862de6
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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