Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f1de1ad authored by Samuel Fufa's avatar Samuel Fufa
Browse files

set people icon on main thread

Change-Id: I23435e41677efc6f262b464bfb5d9db6c057abb8
parent 4dfd3102
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.launcher3.views;
import static android.content.Intent.URI_ALLOW_UNSAFE;
import static android.content.Intent.URI_ANDROID_APP_SCHEME;

import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;

import android.content.Context;
@@ -129,7 +130,7 @@ public class SearchResultPeopleView extends LinearLayout implements
                            ApplicationInfo applicationInfo = mPackageManager.getApplicationInfo(
                                    pkg, 0);
                            Drawable appIcon = applicationInfo.loadIcon(mPackageManager);
                            button.setImageDrawable(appIcon);
                            MAIN_EXECUTOR.post(()-> button.setImageDrawable(appIcon));
                        } catch (PackageManager.NameNotFoundException ignored) {
                        }