Merge pull request #24 from caneleex/fix/shorts-bug

remove thread check from PlayerController.setCurrentVideoId
This commit is contained in:
KevinX8 2021-04-24 15:56:44 +01:00 committed by GitHub
commit 0aa753efd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -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;