fix: Tensor SoC detection for internal model IDs

This commit is contained in:
edde746
2026-03-25 04:15:34 +01:00
parent 8d56171bd2
commit 23043c61f4
2 changed files with 10 additions and 1 deletions
@@ -129,8 +129,11 @@ class MainActivity : FlutterActivity() {
// Android TV devices — weaker GPUs, less Impeller testing
if (packageManager.hasSystemFeature("android.software.leanback")) return true
// Google Tensor SoC (Mali GPU) — Pixel 6+
// SOC_MODEL may return marketing name ("Tensor G2") or internal ID ("GS201")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
if (Build.SOC_MODEL.startsWith("Tensor", ignoreCase = true)) return true
val soc = Build.SOC_MODEL
if (soc.startsWith("Tensor", ignoreCase = true) ||
soc.startsWith("GS", ignoreCase = true)) return true
}
// NVIDIA Tegra (Shield TV)
if (Build.MANUFACTURER.equals("NVIDIA", ignoreCase = true)) return true
@@ -121,6 +121,12 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
return;
}
}
// If neither the item nor its parents are loaded (evicted), the event
// was already filtered by DeletionAware's upstream check against
// deletionGlobalKeys/deletionRatingKeys, so this point is unreachable.
// The grid self-corrects when _fetchRange updates _totalSize from the
// server response on the next scroll.
}
/// Remove an item at [index] and shift all higher indices down by 1