mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-24 11:45:49 +01:00
Merge pull request #24 from caneleex/fix/shorts-bug
remove thread check from PlayerController.setCurrentVideoId
This commit is contained in:
commit
ce87d8ac0e
@ -2,7 +2,6 @@ package pl.jakubweg;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Handler;
|
||||
@ -10,7 +9,6 @@ import android.os.Looper;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Toast;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.lang.reflect.Field;
|
||||
@ -66,9 +64,6 @@ public class PlayerController {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Looper.myLooper() != Looper.getMainLooper()) // check if thread is not main
|
||||
return;
|
||||
|
||||
if (videoId.equals(currentVideoId))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user