Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c60e714 authored by Sunny Goyal's avatar Sunny Goyal Committed by android-build-merger
Browse files

Updating the setAsyncExecutor call as per API changes

am: 9a122710

Change-Id: I6734eb6c3dfd8efebb5de2d7130522aacc5caa3e
parents bac13212 9a122710
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);