From 3f85f76d2e4f9254a94c59e4954c7be5306522a3 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 1 Oct 2023 18:43:38 -0700 Subject: [PATCH] Remove dead code --- app/src/main/java/gallery/memories/NativeX.kt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/src/main/java/gallery/memories/NativeX.kt b/app/src/main/java/gallery/memories/NativeX.kt index 0ac03b69..1be7dd00 100644 --- a/app/src/main/java/gallery/memories/NativeX.kt +++ b/app/src/main/java/gallery/memories/NativeX.kt @@ -129,23 +129,6 @@ import java.net.URLDecoder dlService!!.queue(url, filename) } - @JavascriptInterface - fun playVideoLocal(fileId: String?) { - if (fileId == null) return; - - Thread { - // Get URI of local video - val videos = SystemImage.getByIds(mCtx, arrayListOf(fileId.toLong())) - if (videos.isEmpty()) return@Thread - val video = videos[0] - - // Play with exoplayer - mCtx.runOnUiThread { - mCtx.initializePlayer(arrayOf(video.uri), fileId) - } - }.start() - } - @JavascriptInterface fun playVideo(auid: String?, fileid: String?, urlsArray: String?) { if (auid == null || fileid == null || urlsArray == null) return