Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jan 6, 2024
1 parent 28af032 commit 3e3c696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class HiddifyMainSubAdapter(val context: Context, val callback: (Int,Boolean) ->
time.showGone(subItem.expire > (0).toLong() && ((subItem.expire-System.currentTimeMillis())<1000L*60*60*24*1000))

//todo: if lastUpdateTime have value u comment it
//lastUpdate.text = HiddifyUtils.timeToRelativeTime(subItem.lastUpdateTime, context)
//lastUpdate.showGone(subItem.lastUpdateTime > (0).toLong())
//lastUpdate.text = HiddifyUtils.timeToRelativeTime(subItem.lastUpdated, context)
//lastUpdate.showGone(subItem.lastUpdated > (0).toLong())

consumerTrafficValue.text = HiddifyUtils.toTotalUsedGig(
subItem.total,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class HiddifyUtils {
val json = subStorage?.decodeString(subid)
if (!json.isNullOrBlank()) {
var sub = Gson().fromJson(json, SubscriptionItem::class.java)
sub.lastUpdateTime=System.currentTimeMillis()
sub.lastUpdated=System.currentTimeMillis()
var userinfo = response.headers["Subscription-Userinfo"]?.firstOrNull()
var dns = response.headers["DNS"]?.firstOrNull()
if(!dns.isNullOrEmpty()) {
Expand Down

0 comments on commit 3e3c696

Please sign in to comment.