From 77ab910e05dadee11d36aa9e3272271134782181 Mon Sep 17 00:00:00 2001 From: Tom Van Laerhoven Date: Mon, 16 Oct 2023 18:28:23 +0200 Subject: [PATCH 1/2] Make return type non-null --- .../src/main/java/com/theoplayer/track/QualityListAdapter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/theoplayer/track/QualityListAdapter.kt b/android/src/main/java/com/theoplayer/track/QualityListAdapter.kt index 50ec99f33..96d1e58dd 100644 --- a/android/src/main/java/com/theoplayer/track/QualityListAdapter.kt +++ b/android/src/main/java/com/theoplayer/track/QualityListAdapter.kt @@ -33,8 +33,8 @@ class QualityListAdapter : QualityList { return qualities.size } - override fun getItem(i: Int): Q? { - return if (i >= 0 && i < length()) qualities[i] else null + override fun getItem(i: Int): Q { + return qualities[i] } override fun iterator(): MutableIterator { From 7b1e8b1f5c0700365b211a2493f346c1d9698d71 Mon Sep 17 00:00:00 2001 From: Tom Van Laerhoven Date: Mon, 16 Oct 2023 18:30:14 +0200 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80cc50302..1b102c932 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Fixed an issue on Android where compilation would fail when depending on player SDK 6.2.0. + ## [3.0.1] - 23-10-12 ### Fixed