Commit 3bf27115 by wjg

add update

parent cb3908f0
...@@ -11,6 +11,7 @@ import androidx.viewpager.widget.PagerAdapter; ...@@ -11,6 +11,7 @@ import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager; import androidx.viewpager.widget.ViewPager;
import com.ihaoin.hooloo.device.util.CollectionUtils; import com.ihaoin.hooloo.device.util.CollectionUtils;
import com.ihaoin.hooloo.device.util.Utils;
import java.util.List; import java.util.List;
...@@ -77,6 +78,7 @@ public class IntroViewPager extends ViewPager { ...@@ -77,6 +78,7 @@ public class IntroViewPager extends ViewPager {
public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) { public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) {
View view = getView(position); View view = getView(position);
container.removeView(view); container.removeView(view);
Utils.i("destroyItem: " + position);
} }
@NonNull @NonNull
...@@ -85,6 +87,7 @@ public class IntroViewPager extends ViewPager { ...@@ -85,6 +87,7 @@ public class IntroViewPager extends ViewPager {
if (CollectionUtils.isEmpty(introViews)) { if (CollectionUtils.isEmpty(introViews)) {
return null; return null;
} }
Utils.i("instantiateItem: " + position);
View view = getView(position); View view = getView(position);
container.addView(view); container.addView(view);
return view; return view;
......
...@@ -139,16 +139,10 @@ public class KdsPresentation extends Presentation { ...@@ -139,16 +139,10 @@ public class KdsPresentation extends Presentation {
private void showImages() { private void showImages() {
MainData mainData = HLApplication.getMainData(); MainData mainData = HLApplication.getMainData();
// TODO TEST
// List<String> imgs = Arrays.asList("https://hooloo-saas-test.oss-cn-beijing.aliyuncs.com/hooloo/2022/07/04/%E7%82%B9%E5%8D%95%E5%B1%8F%E5%86%85%E5%AE%B9%E5%9B%BE3.png", "https://hooloo-saas-test.oss-cn-beijing.aliyuncs.com/hooloo/2022/07/04/%E7%82%B9%E5%8D%95%E5%B1%8F%E5%86%85%E5%AE%B9%E5%9B%BE3.png", "https://hooloo-saas-test.oss-cn-beijing.aliyuncs.com/hooloo/2022/07/04/%E7%82%B9%E5%8D%95%E5%B1%8F%E5%86%85%E5%AE%B9%E5%9B%BE3.png");
// Images img = new Images();
// img.setLeft(imgs);
// mainData.setImages(img);
if (mainData == null || mainData.getImages() == null) { if (mainData == null || mainData.getImages() == null) {
return; return;
} }
imagePager.removeAllViews(); imagePager.removeAllViews();
// List<String> lefts = Arrays.asList("https://hooloo-saas-test.oss-cn-beijing.aliyuncs.com/hooloo/2022/07/08/点单屏内容图-拿铁.png", "https://hooloo-saas-test.oss-cn-beijing.aliyuncs.com/hooloo/2022/07/08/点单屏内容图-拿铁.png");
if (CollectionUtils.isEmpty(mainData.getImages().getLeft())) { if (CollectionUtils.isEmpty(mainData.getImages().getLeft())) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment