commit | 1599bfdbb7a95efe06d57fd4abf1c7f974adb4eb | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon May 08 15:56:43 2017 +0000 |
committer | Sunny Goyal <sunnygoyal@google.com> | Mon May 08 15:56:43 2017 +0000 |
tree | 66b2676be63d691c261467647475bc4f670fceae | |
parent | b3837295fea8ba272fcb0e0569747fac6e602524 [diff] | |
parent | 9a1227105a00ea740151f91ae3aab75a688d32ac [diff] |
Updating the setAsyncExecutor call as per API changes am: 9a1227105a Change-Id: I57576435c3442824cad532edd43661abf9e6becd
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);