mirror of
https://github.com/YTVanced/Integrations
synced 2024-11-01 00:42:39 +00:00
Merge pull request #24 from caneleex/fix/shorts-bug
remove thread check from PlayerController.setCurrentVideoId
This commit is contained in:
commit
0aa753efd1
1 changed files with 0 additions and 5 deletions
|
@ -2,7 +2,6 @@ package pl.jakubweg;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
|
||||||
import android.graphics.Canvas;
|
import android.graphics.Canvas;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
@ -10,7 +9,6 @@ import android.os.Looper;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
@ -66,9 +64,6 @@ public class PlayerController {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Looper.myLooper() != Looper.getMainLooper()) // check if thread is not main
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (videoId.equals(currentVideoId))
|
if (videoId.equals(currentVideoId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue