Skip to content

Commit 1da7b10

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents df83751 + e36e9e8 commit 1da7b10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/lagradost/cloudstream3/ui/download/button/PieFetchButton.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ open class PieFetchButton(context: Context, attributeSet: AttributeSet) :
304304
override fun setStatus(status: DownloadStatusTell?) {
305305
currentStatus = status
306306

307-
// Runs on the main thread, but also instant if it already is
308-
if (Looper.myLooper() == Looper.getMainLooper()) {
307+
// Runs on the main thread, but also instant if it already is.
308+
if (Looper.getMainLooper().isCurrentThread) {
309309
try {
310310
setStatusInternal(status)
311311
} catch (t: Throwable) {

0 commit comments

Comments
 (0)