Reduce minimum SDK version to 26

This commit is contained in:
Butterscotch!
2023-03-31 18:23:17 -04:00
parent e864487246
commit 3634bedef1
3 changed files with 8 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ android {
applicationId = "dev.slimevr.server"
// Defines the minimum API level required to run the app.
minSdk = 33
minSdk = 26
// Specifies the API level used to test the app.
targetSdk = 33

View File

@@ -73,7 +73,7 @@ public class PubSubHandler extends ProtocolHandler<PubSubHeader> {
.stream()
.filter((handle) -> handle == finalSubHandle)
.findFirst();
if (first.isEmpty()) {
if (!first.isPresent()) {
conn.getContext().getSubscribedTopics().add(finalSubHandle);
}

View File

@@ -192,7 +192,12 @@ public class HumanSkeleton {
) {
this(humanPoseManager);
setTrackersFromList(Objects.requireNonNullElseGet(trackers, () -> new FastList<>(0)));
List<? extends Tracker> trackersList = trackers;
if (trackersList == null) {
trackersList = new FastList<>(0);
}
setTrackersFromList(trackersList);
}
// #endregion