Commit 3bf27115 by wjg

add update

parent cb3908f0
......@@ -11,6 +11,7 @@ import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;
import com.ihaoin.hooloo.device.util.CollectionUtils;
import com.ihaoin.hooloo.device.util.Utils;
import java.util.List;
......@@ -77,6 +78,7 @@ public class IntroViewPager extends ViewPager {
public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) {
View view = getView(position);
container.removeView(view);
Utils.i("destroyItem: " + position);
}
@NonNull
......@@ -85,6 +87,7 @@ public class IntroViewPager extends ViewPager {
if (CollectionUtils.isEmpty(introViews)) {
return null;
}
Utils.i("instantiateItem: " + position);
View view = getView(position);
container.addView(view);
return view;
......
......@@ -139,16 +139,10 @@ public class KdsPresentation extends Presentation {
private void showImages() {
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) {
return;
}
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())) {
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