Updating the setAsyncExecutor call as per API changes

am: 9a1227105a

Change-Id: I6734eb6c3dfd8efebb5de2d7130522aacc5caa3e
This commit is contained in:
Sunny Goyal
2017-05-08 16:14:45 +00:00
committed by android-build-merger
@@ -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);