AppDetailsFragment: Move targetSdk info to more details fragment
Since past few years Google has a target SDK requirement making this info not so useful as apps will sooner or later always target latest SDK. Ref: https://developer.android.com/google/play/requirements/target-sdk Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -730,7 +730,6 @@ class AppDetailsFragment : BaseFragment<FragmentDetailsBinding>() {
|
|||||||
|
|
||||||
txtSize.text = CommonUtil.addSiPrefix(app.size)
|
txtSize.text = CommonUtil.addSiPrefix(app.size)
|
||||||
txtRating.text = app.labeledRating
|
txtRating.text = app.labeledRating
|
||||||
txtSdk.text = ("Target SDK ${app.targetSdk}")
|
|
||||||
txtUpdated.text = app.updatedOn
|
txtUpdated.text = app.updatedOn
|
||||||
txtDescription.text = HtmlCompat.fromHtml(
|
txtDescription.text = HtmlCompat.fromHtml(
|
||||||
app.shortDescription,
|
app.shortDescription,
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import com.aurora.store.view.epoxy.views.details.MoreBadgeViewModel_
|
|||||||
import com.aurora.store.view.ui.commons.BaseFragment
|
import com.aurora.store.view.ui.commons.BaseFragment
|
||||||
import com.aurora.store.viewmodel.details.DetailsMoreViewModel
|
import com.aurora.store.viewmodel.details.DetailsMoreViewModel
|
||||||
import dagger.hilt.android.AndroidEntryPoint
|
import dagger.hilt.android.AndroidEntryPoint
|
||||||
|
import java.util.UUID
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
@AndroidEntryPoint
|
@AndroidEntryPoint
|
||||||
@@ -153,6 +154,11 @@ class DetailsMoreFragment : BaseFragment<FragmentDetailsMoreBinding>() {
|
|||||||
.badge(it)
|
.badge(it)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
add(
|
||||||
|
InfoViewModel_()
|
||||||
|
.id(UUID.randomUUID().toString())
|
||||||
|
.badge(mapOf("targets" to "API ${app.targetSdk}").entries.first())
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,18 +86,6 @@
|
|||||||
app:drawableTint="?colorAccent"
|
app:drawableTint="?colorAccent"
|
||||||
tools:text="25 MB" />
|
tools:text="25 MB" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:id="@+id/txt_sdk"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="@dimen/margin_small"
|
|
||||||
android:layout_marginEnd="@dimen/margin_small"
|
|
||||||
android:drawablePadding="@dimen/padding_small"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:textAppearance="@style/TextAppearance.Aurora.Line1"
|
|
||||||
app:drawableTint="?colorAccent"
|
|
||||||
tools:text="Android 7+" />
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/txt_updated"
|
android:id="@+id/txt_updated"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
Reference in New Issue
Block a user