commit | 9a1227105a00ea740151f91ae3aab75a688d32ac | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon May 08 08:55:42 2017 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Mon May 08 08:56:28 2017 -0700 |
tree | df0c64e7f33845230587eeffa988a6b3fc84a870 | |
parent | 833a3943ed623c3345b7ab5b877bfb9ee710a1b6 [diff] |
Updating the setAsyncExecutor call as per API changes Bug: 37534990 Change-Id: I3cb9ea4e9aec5647a0f03e5514780f42f207ebc0
diff --git a/src/com/android/launcher3/LauncherAppWidgetHostView.java b/src/com/android/launcher3/LauncherAppWidgetHostView.java index 61b8a7a..13cc7ba 100644 --- a/src/com/android/launcher3/LauncherAppWidgetHostView.java +++ b/src/com/android/launcher3/LauncherAppWidgetHostView.java
@@ -100,7 +100,7 @@ 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);