From 4277e62db68db0723d48ccfaac15a67f67b6f241 Mon Sep 17 00:00:00 2001 From: okjack Date: Sun, 17 Mar 2024 00:34:15 +0800 Subject: [PATCH] update --- .../java/com/fongmi/android/tv/ui/fragment/HomeFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/leanback/java/com/fongmi/android/tv/ui/fragment/HomeFragment.java b/app/src/leanback/java/com/fongmi/android/tv/ui/fragment/HomeFragment.java index b2cb369fbc..325c0e6fc1 100644 --- a/app/src/leanback/java/com/fongmi/android/tv/ui/fragment/HomeFragment.java +++ b/app/src/leanback/java/com/fongmi/android/tv/ui/fragment/HomeFragment.java @@ -147,7 +147,7 @@ private ListRow getFuncRow() { private void refreshFuncRow() { if (homeUI == Setting.getHomeUI() && Setting.getHomeButtons(Button.getDefaultButtons()).equals(button)) return; - mAdapter.removeItems(0, 1); + if (!TextUtils.isEmpty(button)) mAdapter.removeItems(0, 1); homeUI = Setting.getHomeUI(); button = Setting.getHomeButtons(Button.getDefaultButtons()); ListRow funcRow = getFuncRow();