From 9a1227105a00ea740151f91ae3aab75a688d32ac Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 8 May 2017 08:55:42 -0700 Subject: [PATCH] Updating the setAsyncExecutor call as per API changes Bug: 37534990 Change-Id: I3cb9ea4e9aec5647a0f03e5514780f42f207ebc0 --- src/com/android/launcher3/LauncherAppWidgetHostView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/LauncherAppWidgetHostView.java b/src/com/android/launcher3/LauncherAppWidgetHostView.java index 61b8a7aa8a..13cc7ba077 100644 --- a/src/com/android/launcher3/LauncherAppWidgetHostView.java +++ b/src/com/android/launcher3/LauncherAppWidgetHostView.java @@ -100,7 +100,7 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView if (Utilities.isAtLeastO()) { try { Method asyncMethod = AppWidgetHostView.class - .getMethod("setAsyncExecutor", Executor.class); + .getMethod("setExecutor", Executor.class); asyncMethod.invoke(this, Utilities.THREAD_POOL_EXECUTOR); } catch (Exception e) { Log.e(TAG, "Unable to set async executor", e);