From 452595f48ac6bce07a69c7f750b0083e8a799171 Mon Sep 17 00:00:00 2001 From: hurali97 Date: Tue, 16 Jan 2024 16:36:46 +0500 Subject: [PATCH] fix: add screenTTI marker when splash hides --- .../java/com/expensify/chat/bootsplash/BootSplashModule.java | 3 +++ src/libs/actions/App.ts | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashModule.java b/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashModule.java index 7498fa6594fb..63d7d5be27b0 100644 --- a/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashModule.java +++ b/android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashModule.java @@ -23,6 +23,8 @@ import com.facebook.react.common.ReactConstants; import com.facebook.react.module.annotations.ReactModule; import com.facebook.react.uimanager.PixelUtil; +import com.oblador.performance.RNPerformance; + import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; @@ -171,6 +173,7 @@ public void run() { public void onDismiss(DialogInterface dialog) { mDialog = null; clearPromiseQueue(); + RNPerformance.getInstance().mark("sidebar_loaded_end", false); } }); diff --git a/src/libs/actions/App.ts b/src/libs/actions/App.ts index 768dc530cc51..0da89a158723 100644 --- a/src/libs/actions/App.ts +++ b/src/libs/actions/App.ts @@ -125,7 +125,6 @@ function setSidebarLoaded() { } Onyx.set(ONYXKEYS.IS_SIDEBAR_LOADED, true); - Performance.markEnd(CONST.TIMING.SIDEBAR_LOADED); Performance.markStart(CONST.TIMING.REPORT_INITIAL_RENDER); }