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

Commit e93eef54 authored by wilsonshih's avatar wilsonshih Committed by Wei Sheng Shih
Browse files

Add a comment in WallpaperManager#getWallpaperColors

After discussion, instead of preventing the user get stuck
when calling WallpaperManager#getWallpaperColors, we decided
to inform developers that this API should not be called in
their UI thread.

Bug: 127343255
Test: atest WallpaperManagerTest
Change-Id: I3ae82a127391d4d8c23b56077954b74fd691f774
parent 31a00d0a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -930,6 +930,9 @@ public class WallpaperManager {
     * {@link android.service.wallpaper.WallpaperService.Engine#onComputeColors()
     *     WallpaperService.Engine#onComputeColors()}.</li>
     * </ul>
     * <p>Please note that this API will go through IPC and may take some time to
     * calculate the wallpaper color, which could block the caller thread, so it is
     * not recommended to call this in the UI thread.</p>
     *
     * @param which Wallpaper type. Must be either {@link #FLAG_SYSTEM} or
     *     {@link #FLAG_LOCK}.