| | |
| | | @UiThread |
| | | public void pictureNextUiThread(File imageFile) { |
| | | try { |
| | | // System.out.println("AdvertisingImageViewFragment.pictureNextUiThread " + imageFile.getAbsolutePath()); |
| | | // System1.out.println("AdvertisingImageViewFragment.pictureNextUiThread " + imageFile.getAbsolutePath()); |
| | | if (imageFile.exists()) { |
| | | Glide.with(this).load(imageFile).apply(new RequestOptions()).into(advertise); |
| | | } |
| | | } catch (Exception e) { |
| | | System.out.println("AdvertisingImageViewFragment.pictureNextUiThread " + e.getMessage()); |
| | | System1.out.println("AdvertisingImageViewFragment.pictureNextUiThread " + e.getMessage()); |
| | | // e.printStackTrace(); |
| | | } |
| | | } |
| | |
| | | BaseApplication.getApplication().executorService.execute(() -> { |
| | | while (true) { |
| | | try { |
| | | // System.out.println("AdvertisingImageViewFragment.afterViews"); |
| | | // System1.out.println("AdvertisingImageViewFragment.afterViews"); |
| | | List<String> advertisingImageList = AdvertisingImageViewManager.getAdvertisingImageList(); |
| | | if (advertisingImageList.size() > 0) { |
| | | currentPictureIndex = currentPictureIndex % advertisingImageList.size(); |