From 2b172ae615dd15410a1618c5d23d01d740d771b0 Mon Sep 17 00:00:00 2001 From: Li ZongYing Date: Wed, 1 May 2024 17:00:33 +0800 Subject: [PATCH] fix retry bug --- app/src/main/java/com/lizongying/mytv/models/TVViewModel.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/lizongying/mytv/models/TVViewModel.kt b/app/src/main/java/com/lizongying/mytv/models/TVViewModel.kt index e144c655..d20082e0 100644 --- a/app/src/main/java/com/lizongying/mytv/models/TVViewModel.kt +++ b/app/src/main/java/com/lizongying/mytv/models/TVViewModel.kt @@ -66,6 +66,10 @@ class TVViewModel(private var tv: TV) : ViewModel() { } fun changed(from: String) { + retryTimes = 0 + authYSPRetryTimes = 0 + tokenYSPRetryTimes = 0 + tokenFHRetryTimes = 0 _change.value = from }