OSDN Git Service

Updating the setAsyncExecutor call as per API changes
authorSunny Goyal <sunnygoyal@google.com>
Mon, 8 May 2017 15:55:42 +0000 (08:55 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Mon, 8 May 2017 15:56:28 +0000 (08:56 -0700)
Bug: 37534990
Change-Id: I3cb9ea4e9aec5647a0f03e5514780f42f207ebc0

src/com/android/launcher3/LauncherAppWidgetHostView.java

index 61b8a7a..13cc7ba 100644 (file)
@@ -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);