Update downloadable badge color and grid item radius
Screenshots:
- Before (collection): screenshot/3sKAA4eRhYvbKt2.png
- After (collection): screenshot/6n3PhDoU8VNb7DM.png
- Before (thumbnail): screenshot/9PDNHySjwttbnLw.png
- After (thumbnail): screenshot/AvPFrKUXkzXZLRc.png
Bug: 188734434
Test: Manual (visual comparison)
Change-Id: I6e4953fbff0b14a3540268344e8f23dc709bdd85
diff --git a/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java b/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
index 84f2e7a..989d7a5 100755
--- a/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
+++ b/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
@@ -42,6 +42,7 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
+import androidx.cardview.widget.CardView;
import androidx.core.widget.ContentLoadingProgressBar;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
@@ -1418,14 +1419,16 @@
WallpaperInfo wallpaper = mWallpapers.get(wallpaperIndex);
((IndividualHolder) holder).bindWallpaper(wallpaper);
boolean isWallpaperApplied = mAppliedWallpaperIds.contains(wallpaper.getWallpaperId());
- boolean isWallpaperSelected = wallpaper.equals(mSelectedWallpaperInfo);
- boolean hasUserSelectedWallpaper = mSelectedWallpaperInfo != null;
if (isWallpaperApplied) {
mSelectedAdapterPosition = position;
mAppliedWallpaperInfo = wallpaper;
}
+ CardView container = holder.itemView.findViewById(R.id.wallpaper_container);
+ int radiusId = isFewerColumnLayout() ? R.dimen.grid_item_all_radius
+ : R.dimen.grid_item_all_radius_small;
+ container.setRadius(getResources().getDimension(radiusId));
CustomShapeImageView thumbnail = holder.itemView.findViewById(R.id.thumbnail);
thumbnail.setClipped(isWallpaperApplied);
}