From bc30c4efcdff1f87019a0397a3a9dcbd09820a76 Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Mon, 13 Feb 2023 11:11:00 +0000 Subject: [PATCH] Remove unused windowAttributes Historically used for window insets, then later for watch roundedness as well, then only watch roundedness, and finally nothing at all except recycle(). See I24e6564030a6051c3ac7262868983b43e13eee65 for the point where this became totally unused. Change-Id: Ic03a94a90cbf0b9fc61df190b106747d096b94c4 --- core/java/android/service/wallpaper/WallpaperService.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/java/android/service/wallpaper/WallpaperService.java b/core/java/android/service/wallpaper/WallpaperService.java index 23513fad2a538..120e8711e6074 100644 --- a/core/java/android/service/wallpaper/WallpaperService.java +++ b/core/java/android/service/wallpaper/WallpaperService.java @@ -45,7 +45,6 @@ import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; -import android.content.res.TypedArray; import android.graphics.BLASTBufferQueue; import android.graphics.Bitmap; import android.graphics.Canvas; @@ -1153,11 +1152,6 @@ public abstract class WallpaperService extends Service { mLayout.token = mWindowToken; if (!mCreated) { - // Retrieve watch round info - TypedArray windowStyle = obtainStyledAttributes( - com.android.internal.R.styleable.Window); - windowStyle.recycle(); - // Add window mLayout.type = mIWallpaperEngine.mWindowType; mLayout.gravity = Gravity.START|Gravity.TOP;