diff --git a/FaceUnity/src/main/java/com/yunbao/faceunity/ui/FaceUnityView.java b/FaceUnity/src/main/java/com/yunbao/faceunity/ui/FaceUnityView.java index 548e161fc..b8ae46f8d 100644 --- a/FaceUnity/src/main/java/com/yunbao/faceunity/ui/FaceUnityView.java +++ b/FaceUnity/src/main/java/com/yunbao/faceunity/ui/FaceUnityView.java @@ -182,9 +182,9 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper map.put(R.string.beauty_radio_face_shape, FaceParam.FACE_BEAUTY_SHAPE); map.put(R.string.beauty_radio_filter, FaceParam.FACE_BEAUTY_FILTER); map.put(R.string.beauty_radio_style, FaceParam.FACE_BEAUTY_STYLE); - setTab(createTabs(map)); setContainerRecycler(FaceBeautySource.buildSkinParams()); changeRecyclerItemCount(2); + setTab(createTabs(map)); menuGroup.setVisibility(GONE); titleLayout.setVisibility(GONE); back.setVisibility(GONE); @@ -311,7 +311,16 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper tabLayout.removeAllTabs(); for (TabLayout.Tab tab : tabs) { tabLayout.addTab(tab); + if(tab.getTag() instanceof Integer) { + if (FaceSPUtils.getInstance().getString(StyleViewHolder.class.getSimpleName() + "_") != null && (int) tab.getTag() == FaceParam.FACE_BEAUTY_STYLE) { + ToastUtil.show("请先重置风格推荐"); + tab.select(); + changeRecyclerItemCount(5); + setContainerRecycler(FaceBeautySource.buildStylesParams()); + } + } } + tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() { @Override public void onTabSelected(TabLayout.Tab tab) { diff --git a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_1_normal.png b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_1_normal.png index 72cfa330b..119433153 100644 Binary files a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_1_normal.png and b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_1_normal.png differ diff --git a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_2_normal.png b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_2_normal.png index 11363fba7..f1e2fd9ed 100644 Binary files a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_2_normal.png and b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_2_normal.png differ diff --git a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_3_normal.png b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_3_normal.png index 21102d5f2..20d377449 100644 Binary files a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_3_normal.png and b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_3_normal.png differ diff --git a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_4_normal.png b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_4_normal.png index 46872da54..38a8811e9 100644 Binary files a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_4_normal.png and b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_4_normal.png differ diff --git a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_5_normal.png b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_5_normal.png index afafa2dfa..f6f74c057 100644 Binary files a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_5_normal.png and b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_5_normal.png differ diff --git a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_6_normal.png b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_6_normal.png index d54ab017a..c5988894a 100644 Binary files a/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_6_normal.png and b/FaceUnity/src/main/res/mipmap-xxhdpi/icon_beauty_box_style_6_normal.png differ