Updating the setAsyncExecutor call as per API changes

Bug: 37534990
Change-Id: I3cb9ea4e9aec5647a0f03e5514780f42f207ebc0
This commit is contained in:
Sunny Goyal
2017-05-08 08:55:42 -07:00
parent 833a3943ed
commit 9a1227105a
@@ -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);