commit | 5c60e7148774ae6e75ea44ea49156c78a542592e | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon May 08 16:14:45 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Mon May 08 16:14:45 2017 +0000 |
tree | d86ac4ea6a8678d1bed832e350299fb718db0231 | |
parent | bac132120174a76f957bd8e7fe668ad4e69ab9da [diff] | |
parent | 9a1227105a00ea740151f91ae3aab75a688d32ac [diff] |
Updating the setAsyncExecutor call as per API changes am: 9a1227105a Change-Id: I6734eb6c3dfd8efebb5de2d7130522aacc5caa3e
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);