TP-72662 | PS | fixed NPS to sendmoney transition animation issue (#11701)
This commit is contained in:
@@ -302,6 +302,14 @@ object NaviPaySdkUtils {
|
||||
}
|
||||
}
|
||||
|
||||
fun isSourcePMS(intentData: Bundle?): Boolean {
|
||||
return when (intentData?.getString(NAVI_PAY_ACTION)) {
|
||||
NaviPayAction.SEND_MONEY.name,
|
||||
NaviPayAction.SET_PIN.name -> true
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
|
||||
fun getTransactionResponse(
|
||||
accountId: String? = null,
|
||||
amount: String? = null,
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.navi.pay.common.utils.NaviPaySdkUtils
|
||||
import com.navi.pay.entry.NaviPayActivity
|
||||
import com.ramcosta.composedestinations.annotation.Destination
|
||||
import com.ramcosta.composedestinations.navigation.DestinationsNavigator
|
||||
import kotlinx.coroutines.delay
|
||||
|
||||
@Destination
|
||||
@Composable
|
||||
@@ -36,6 +37,7 @@ fun NaviPayEmptyHomeScreen(
|
||||
sourceScreenName = intentData?.getString(SOURCE_SCREEN_NAME).orEmpty(),
|
||||
bundle = intentData ?: Bundle()
|
||||
)
|
||||
if (NaviPaySdkUtils.isSourcePMS(intentData)) delay(100)
|
||||
direction?.let { navigator.navigate(it) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user