From 10a477c2bdb604ea0c5f1d513564b6cbe51bcdcc Mon Sep 17 00:00:00 2001
From: Luna712 <142361265+Luna712@users.noreply.github.com>
Date: Sat, 16 Dec 2023 10:42:51 -0700
Subject: [PATCH] Show toast when reloading links (#818)
I'm not really sure if this should be done or not. But I like to know if I actually press the button or miss click as I often have to press it twice for it to do anything, which might just be another issue though.
---
.../com/lagradost/cloudstream3/ui/result/ResultViewModel2.kt | 4 ++++
app/src/main/res/values/strings.xml | 1 +
2 files changed, 5 insertions(+)
diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultViewModel2.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultViewModel2.kt
index 0cad17c4..101a65ef 100644
--- a/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultViewModel2.kt
+++ b/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultViewModel2.kt
@@ -1646,6 +1646,10 @@ class ResultViewModel2 : ViewModel() {
clearCache = true
)
}
+ showToast(
+ R.string.links_reloaded_toast,
+ Toast.LENGTH_SHORT
+ )
}
ACTION_CHROME_CAST_MIRROR -> {
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ce660a67..79e3d89d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -148,6 +148,7 @@
Update Started
Stream
Error Loading Links
+ Links Reloaded
Internal Storage
Dub
Sub