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

Commit 482fbc34 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Mark parameter as nullable

This parameter has been nullable since when the API was introduced, but
it was not properly annotated like everywher else.

Fixes: 193225087
Test: m -j
Change-Id: I49e3d840f0cc7b5974059189a1e3eac201e8a5df
parent e31e9d3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6980,7 +6980,7 @@ package android.app {
  }
  public static interface WallpaperManager.OnColorsChangedListener {
    method public void onColorsChanged(android.app.WallpaperColors, int);
    method public void onColorsChanged(@Nullable android.app.WallpaperColors, int);
  }
  public interface ZygotePreload {
+7 −4
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ import android.os.ParcelFileDescriptor;
import android.os.RemoteException;
import android.os.StrictMode;
import android.os.SystemProperties;
import android.service.wallpaper.WallpaperService;
import android.text.TextUtils;
import android.util.ArrayMap;
import android.util.ArraySet;
@@ -2316,22 +2317,24 @@ public class WallpaperManager {
         * A {@link android.app.WallpaperColors} object containing a simplified
         * color histogram will be given.
         *
         * @param colors Wallpaper color info
         * @param colors Wallpaper color info, {@code null} when not available.
         * @param which A combination of {@link #FLAG_LOCK} and {@link #FLAG_SYSTEM}
         * @see WallpaperService.Engine#onComputeColors()
         */
        void onColorsChanged(WallpaperColors colors, int which);
        void onColorsChanged(@Nullable WallpaperColors colors, int which);

        /**
         * Called when colors change.
         * A {@link android.app.WallpaperColors} object containing a simplified
         * color histogram will be given.
         *
         * @param colors Wallpaper color info
         * @param colors Wallpaper color info, {@code null} when not available.
         * @param which A combination of {@link #FLAG_LOCK} and {@link #FLAG_SYSTEM}
         * @param userId Owner of the wallpaper
         * @see WallpaperService.Engine#onComputeColors()
         * @hide
         */
        default void onColorsChanged(WallpaperColors colors, int which, int userId) {
        default void onColorsChanged(@Nullable WallpaperColors colors, int which, int userId) {
            onColorsChanged(colors, which);
        }
    }