Updating the setAsyncExecutor call as per API changes am: 9a1227105a

Change-Id: I57576435c3442824cad532edd43661abf9e6becd
This commit is contained in:
Sunny Goyal
2017-05-08 15:56:43 +00:00
@@ -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);