Double pre-inflate counts if work profile is enabled

When work profile is enabled, we will show 2 all apps recycler views, thus we should double the pre-inflated BubbleTextView count to make sure scrolling both personal and work all apps is smooth.

Traces are attached in bug.

Fix: 287462835
Test: Grab perfetto traces and compare scrolling all apps on phone with work profile enabled vs disabled
Change-Id: Iaa68ddacad0abcca0f260dd7fa21c92d2feabb03
This commit is contained in:
Fengjiang Li
2023-10-05 11:18:49 -07:00
parent 2cce534cbb
commit 25eac1381f
4 changed files with 18 additions and 5 deletions
@@ -27,7 +27,6 @@ import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView.RecycledViewPool;
import com.android.launcher3.BubbleTextView;
import com.android.launcher3.model.data.AppInfo;
@@ -110,7 +109,7 @@ public class AllAppsStore<T extends Context & ActivityContext> {
}
}
RecycledViewPool getRecyclerViewPool() {
AllAppsRecyclerViewPool getRecyclerViewPool() {
return mAllAppsRecyclerViewPool;
}