NTP-8642 || Oe Changes Refactored (#13367)
Co-authored-by: Prajjaval Verma <prajjaval.verma@navi.com> Co-authored-by: Raaj Gopal <raaj.gopal@navi.com> Co-authored-by: Aman S <aman.s@navi.com> Co-authored-by: Aman <amankasyapp@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
* * Copyright © 2023 by Navi Technologies Limited
|
||||
* * Copyright © 2023-2024 by Navi Technologies Limited
|
||||
* * All rights reserved. Strictly confidential
|
||||
*
|
||||
*/
|
||||
@@ -64,6 +64,7 @@ open class ApplicationPlatformActivity : SdkHandlingActivity() {
|
||||
setContent {
|
||||
NaviMaterialTheme {
|
||||
navController = rememberNavHostEngine().rememberNavController()
|
||||
initialiseNavController(navController)
|
||||
NavContainer(
|
||||
activity = this@ApplicationPlatformActivity,
|
||||
navController = navController
|
||||
@@ -136,4 +137,9 @@ open class ApplicationPlatformActivity : SdkHandlingActivity() {
|
||||
override var applicationType = lazy {
|
||||
intent?.getStringExtra(APP_PLATFORM_APPLICATION_TYPE).orEmpty()
|
||||
}
|
||||
|
||||
override fun initialiseNavController(navHostController: NavHostController) {
|
||||
this.navController = navHostController
|
||||
onNavControllerSet(navHostController)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,13 +58,11 @@ abstract class ApResponseCallback {
|
||||
} catch (e: Exception) {
|
||||
handleException(exception = e, response = response, apiTag = apiTag)
|
||||
}
|
||||
metricInfo?.let {
|
||||
CheckMateManager.recordNetworkEvent(
|
||||
response,
|
||||
handledResponse.toRepoResult(),
|
||||
metricInfo
|
||||
)
|
||||
}
|
||||
CheckMateManager.recordNetworkEvent(
|
||||
response,
|
||||
handledResponse.toRepoResult(),
|
||||
metricInfo = metricInfo ?: MetricInfo.getVerticalMetric(response)
|
||||
)
|
||||
return handledResponse
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user