TP-41659 | review comments implementation (#7948)

This commit is contained in:
Sidharth Bamba
2023-09-21 14:14:49 +05:30
committed by GitHub
parent 0998e54d6b
commit 56348a4019
3 changed files with 9 additions and 1962 deletions

View File

@@ -817,6 +817,13 @@ class NaviPayAnalytics private constructor() {
)
}
fun onShareQrFailure(error: String) {
NaviTrackEvent.trackEventOnClickStream(
"Dev_NaviPay_ShareQr_Failure",
mapOf("error" to error)
)
}
fun onCustomerStatusChecked(customerStatus: String) {
NaviTrackEvent.trackEventOnClickStream(
"Dev_NaviPay_MoreOptions_CustomerStatus", mapOf(

View File

@@ -31,6 +31,7 @@ import androidx.compose.ui.unit.dp
import androidx.core.content.ContextCompat
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.navi.analytics.utils.NaviTrackEvent
import com.navi.common.screenshot.ShareBitmapImage
import com.navi.common.utils.createBitmapFromView
import com.navi.common.utils.log
@@ -125,7 +126,7 @@ fun NaviPayHomeScreen(
view = binding.root
)
} catch (e: Exception) {
e.log()
naviPayAnalytics.onShareQrFailure(e.message.toString())
null
}
bitmap?.let {

File diff suppressed because it is too large Load Diff