NTP-52383 || regression fixes 479 (#15608)
This commit is contained in:
@@ -94,16 +94,10 @@ class FundDetailsFragment : AmcBaseFragment(), FooterInteractionListener {
|
||||
fragmentInterchangeListener = context as? FragmentInterchangeListener
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
if (AmcTaskManager.needToUpdateData(FundLandingPrefetchTask.FUND_LANDING_PREFETCH)) {
|
||||
if (launchCounter > 1) {
|
||||
fetchData(genericTimer.isInitialised())
|
||||
}
|
||||
fetchData(genericTimer.isInitialised())
|
||||
triggerPreloadIfRequired()
|
||||
} else {
|
||||
fetchData(genericTimer.isInitialised())
|
||||
|
||||
@@ -10,6 +10,7 @@ package com.navi.amc.portfolio.fragments
|
||||
import MyInvestmentsSharedViewModel
|
||||
import android.content.Context
|
||||
import android.os.Bundle
|
||||
import android.text.TextUtils
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewStub
|
||||
@@ -64,6 +65,7 @@ import com.navi.design.utils.parseColorSafe
|
||||
import com.navi.design.utils.setSpannableString
|
||||
import com.navi.naviwidgets.extensions.getGradientColors
|
||||
import com.navi.naviwidgets.extensions.setGradient
|
||||
import com.navi.naviwidgets.extensions.setMaxCharLength
|
||||
import com.navi.naviwidgets.extensions.showWhenDataIsAvailable
|
||||
import com.navi.naviwidgets.models.AmcOrderStatusWidgetData
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
@@ -302,16 +304,28 @@ class PortfolioFragment() : AmcBaseFragment() {
|
||||
topLeft.root.visibility =
|
||||
data.topLeft?.let {
|
||||
topLeft.subItem = it
|
||||
topLeft.title.setMaxCharLength(10)
|
||||
topLeft.subtitle.setMaxCharLength(10)
|
||||
topLeft.title.ellipsize = TextUtils.TruncateAt.END
|
||||
topLeft.subtitle.ellipsize = TextUtils.TruncateAt.END
|
||||
View.VISIBLE
|
||||
} ?: run { View.INVISIBLE }
|
||||
topRight.root.visibility =
|
||||
data.topRight?.let {
|
||||
topRight.subItem = it
|
||||
topRight.title.setMaxCharLength(20)
|
||||
topRight.subtitle.setMaxCharLength(20)
|
||||
topRight.title.ellipsize = TextUtils.TruncateAt.END
|
||||
topRight.subtitle.ellipsize = TextUtils.TruncateAt.END
|
||||
View.VISIBLE
|
||||
} ?: run { View.INVISIBLE }
|
||||
topMiddle.root.visibility =
|
||||
data.topMiddle?.let {
|
||||
topMiddle.subItem = it
|
||||
topMiddle.title.setMaxCharLength(10)
|
||||
topMiddle.subtitle.setMaxCharLength(10)
|
||||
topMiddle.title.ellipsize = TextUtils.TruncateAt.END
|
||||
topMiddle.subtitle.ellipsize = TextUtils.TruncateAt.END
|
||||
View.VISIBLE
|
||||
} ?: run { View.INVISIBLE }
|
||||
data.actionData?.primaryAction?.let { action ->
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
<com.navi.design.textview.NaviTextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="@dimen/_0dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
@@ -28,12 +28,11 @@
|
||||
android:maxLines="1"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/chevron"
|
||||
app:layout_constraintWidth_min="wrap"
|
||||
app:layout_constraintWidth_max="@dimen/dp_300"
|
||||
android:maxWidth="@dimen/dp_176"
|
||||
app:layout_constraintTop_toBottomOf="@id/label"
|
||||
tools:text="Nifty 50 index" />
|
||||
|
||||
<ImageView
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/chevron"
|
||||
android:layout_width="@dimen/_16dp"
|
||||
android:layout_height="@dimen/_16dp"
|
||||
@@ -61,7 +60,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:textSize="@dimen/_10dp"
|
||||
android:textSize="@dimen/_10sp"
|
||||
android:padding="@dimen/_5dp"/>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
@@ -82,8 +81,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp_16"
|
||||
android:layout_marginStart="@dimen/dp_32"
|
||||
app:layout_constraintStart_toEndOf="@id/top_left"
|
||||
app:layout_constraintStart_toEndOf="@id/guideline_33"
|
||||
app:layout_constraintTop_toTopOf="@id/top_left"
|
||||
app:layout_constraintBottom_toTopOf="@id/button_layout" />
|
||||
|
||||
@@ -94,6 +92,20 @@
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_percent="0.5" />
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_33"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_percent="0.33" />
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_66"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_percent="0.66" />
|
||||
|
||||
|
||||
<include
|
||||
android:id="@+id/top_right"
|
||||
@@ -102,9 +114,9 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp_16"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
android:layout_marginStart="@dimen/dp_32"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/button_layout"
|
||||
app:layout_constraintStart_toEndOf="@id/top_middle"
|
||||
app:layout_constraintStart_toEndOf="@id/guideline_66"
|
||||
app:layout_constraintTop_toTopOf="@id/top_left" />
|
||||
|
||||
<com.navi.design.textview.NaviTextView
|
||||
|
||||
Reference in New Issue
Block a user