TP-54722 | Fixed pd back loader bug (#9405)
Co-authored-by: saksham <saksham>
This commit is contained in:
@@ -1332,7 +1332,7 @@ class DigitalGoldHomeActivity : BaseActivity(), WidgetCallback, NewBottomSheetLi
|
||||
this,
|
||||
naviClickAction.toCtaData(),
|
||||
bundle = bundle,
|
||||
finish = true
|
||||
finish = naviClickAction.finish.orTrue()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.navi.common.utils.toCtaData
|
||||
import com.navi.gold.R
|
||||
import com.navi.gold.databinding.ActivityDigitalGoldPdRpdBinding
|
||||
import com.navi.gold.util.GoldAnalytics.DIGITAL_GOLD_PD_RPD_OPTION_ACTIVITY
|
||||
import com.navi.gold.util.startExitAnimation
|
||||
import com.navi.gold.viewmodels.PennyDropOptionsViewModel
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
|
||||
@@ -75,20 +76,14 @@ class PdRpdOptionsActivity : BaseActivity(), FragmentInterchangeListener,
|
||||
}
|
||||
|
||||
if (fragmentTag == PennyDropOptionsFragment.TAG || fragmentTag.isNullOrEmpty()) {
|
||||
DeepLinkManager.getDeepLinkListener()?.navigateTo(
|
||||
this,
|
||||
ActionData(url = GOLD).toCtaData(),
|
||||
finish = true
|
||||
)
|
||||
finish()
|
||||
startExitAnimation()
|
||||
} else {
|
||||
supportFragmentManager.popBackStack()
|
||||
}
|
||||
} else {
|
||||
DeepLinkManager.getDeepLinkListener()?.navigateTo(
|
||||
this,
|
||||
ActionData(url = GOLD).toCtaData(),
|
||||
finish = true
|
||||
)
|
||||
finish()
|
||||
startExitAnimation()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -416,12 +416,7 @@ class PennyDropOptionsFragment : BaseFragment(), WidgetCallback, NewBottomSheetL
|
||||
}
|
||||
|
||||
private fun onBackPress() {
|
||||
DeepLinkManager.getDeepLinkListener()?.navigateTo(
|
||||
activity = activity,
|
||||
ActionData(url = GOLD).toCtaData(),
|
||||
finish = true
|
||||
)
|
||||
activity?.startExitAnimation()
|
||||
activity?.onBackPressed()
|
||||
}
|
||||
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
|
||||
Reference in New Issue
Block a user