调整选择了风格推荐的话,则不允许使用其他功能
替换风格推荐icon
@ -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_face_shape, FaceParam.FACE_BEAUTY_SHAPE);
|
||||||
map.put(R.string.beauty_radio_filter, FaceParam.FACE_BEAUTY_FILTER);
|
map.put(R.string.beauty_radio_filter, FaceParam.FACE_BEAUTY_FILTER);
|
||||||
map.put(R.string.beauty_radio_style, FaceParam.FACE_BEAUTY_STYLE);
|
map.put(R.string.beauty_radio_style, FaceParam.FACE_BEAUTY_STYLE);
|
||||||
setTab(createTabs(map));
|
|
||||||
setContainerRecycler(FaceBeautySource.buildSkinParams());
|
setContainerRecycler(FaceBeautySource.buildSkinParams());
|
||||||
changeRecyclerItemCount(2);
|
changeRecyclerItemCount(2);
|
||||||
|
setTab(createTabs(map));
|
||||||
menuGroup.setVisibility(GONE);
|
menuGroup.setVisibility(GONE);
|
||||||
titleLayout.setVisibility(GONE);
|
titleLayout.setVisibility(GONE);
|
||||||
back.setVisibility(GONE);
|
back.setVisibility(GONE);
|
||||||
@ -311,7 +311,16 @@ public class FaceUnityView extends LinearLayout implements StickerDownloadHelper
|
|||||||
tabLayout.removeAllTabs();
|
tabLayout.removeAllTabs();
|
||||||
for (TabLayout.Tab tab : tabs) {
|
for (TabLayout.Tab tab : tabs) {
|
||||||
tabLayout.addTab(tab);
|
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() {
|
tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onTabSelected(TabLayout.Tab tab) {
|
public void onTabSelected(TabLayout.Tab tab) {
|
||||||
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.6 KiB |