NTP-62457 | Naman Khurmi | Refresh profile api on resume with conditions. (#16133)
This commit is contained in:
@@ -314,6 +314,10 @@ class NaviAnalytics private constructor() {
|
||||
)
|
||||
}
|
||||
|
||||
fun profileRefreshTriggeredOnResume() {
|
||||
NaviTrackEvent.trackEvent("NaviApp_Profile_Refresh_Triggered_OnResume")
|
||||
}
|
||||
|
||||
fun homeClickDisabled() {
|
||||
NaviTrackEvent.trackEvent("NaviApp_HomePage_click_disabled")
|
||||
}
|
||||
|
||||
@@ -483,11 +483,19 @@ class HomePageActivity :
|
||||
super.onResume()
|
||||
updateQRScreenVisibility()
|
||||
handleStatusBarColor()
|
||||
|
||||
if (BaseUtils.isUserLoggedIn()) {
|
||||
fetchNotificationItems()
|
||||
refreshProfileItems()
|
||||
fetchScreenOverlayData()
|
||||
}
|
||||
if (
|
||||
homeVM.state.value.profileDrawerState &&
|
||||
TemporaryStorageHelper.isDataModified(TemporaryStorageHelper.HOME)
|
||||
) {
|
||||
naviAnalyticsEventTracker.profileRefreshTriggeredOnResume()
|
||||
fetchProfileItems()
|
||||
}
|
||||
TempStorageHelper.clear()
|
||||
if (connectivityObserver.isInternetConnected()) {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user