1.套餐到期年月日时间重新计算,去掉显示一位数补齐0
This commit is contained in:
@@ -120,7 +120,7 @@ class MySubscriptionAdapter(
|
||||
}
|
||||
}
|
||||
|
||||
val times = Utils.getDayToYearMonthDay(item.surplusDays)
|
||||
val times = Utils.differYear(System.currentTimeMillis(), item.endTime)
|
||||
holder.setText(R.id.tv_add_success_device_expires_days, times[0])
|
||||
holder.setText(R.id.tv_add_success_device_expires_hours, times[1])
|
||||
holder.setText(R.id.tv_add_success_device_expires_min, times[2])
|
||||
|
||||
@@ -78,7 +78,9 @@ class PaymentSuccessActivity :
|
||||
tvPaymentSuccessExpiresOnDate.text = Utils.stringToDate(
|
||||
it.expirationTime, resultFormat = Utils.DATE_FORMAT_PATTERN_EN7
|
||||
)
|
||||
val times = Utils.getDayToYearMonthDay(it.surplusDays)
|
||||
val times = Utils.differYear(
|
||||
System.currentTimeMillis(), Utils.stringToTimestamp(it.expirationTime)
|
||||
)
|
||||
ilPaymentSuccessCountDownLayout.tvAddSuccessDeviceExpiresDays.text = times[0]
|
||||
ilPaymentSuccessCountDownLayout.tvAddSuccessDeviceExpiresHours.text = times[1]
|
||||
ilPaymentSuccessCountDownLayout.tvAddSuccessDeviceExpiresMin.text = times[2]
|
||||
|
||||
@@ -416,9 +416,11 @@ class HomeTrackFragment :
|
||||
private fun shareDeviceState() {
|
||||
val share = MMKVUtil.getInt(MMKVKey.Shared)
|
||||
if (share == ConstantInt.NoShare) {
|
||||
mViewBinding.rvHomePetTrackMenu.visibility=View.VISIBLE
|
||||
mZoneAdapter.showNoDataAddButton(true)
|
||||
mFencesAdapter.showNoDataAddButton(true)
|
||||
} else {
|
||||
mViewBinding.rvHomePetTrackMenu.visibility=View.GONE
|
||||
mZoneAdapter.showNoDataAddButton(false)
|
||||
mFencesAdapter.showNoDataAddButton(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user