| | |
| | | import com.lcjian.library.util.ManifestDataUtil; |
| | | import com.weikou.beibeivideo.entity.HomeAd; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity2; |
| | | import com.weikou.beibeivideo.util.AppMarket; |
| | | import com.weikou.beibeivideo.util.CustomShareDialog; |
| | | import com.weikou.beibeivideo.util.downutil.DownFiles; |
| | | import com.yeshi.buwanshequ.R; |
| | | import com.weikou.beibeivideo.R; |
| | | |
| | | import org.json.JSONObject; |
| | | |
| | |
| | | // } else { |
| | | if (mHomeAds.get(position).getLinkType() == 1) { |
| | | intent = new Intent(v.getContext(), |
| | | VideoDetailActivity.class); |
| | | VideoDetailActivity2.class); |
| | | intent.putExtra("video_info", mHomeAds.get(position) |
| | | .getVideo()); |
| | | } else if (mHomeAds.get(position).getLinkType() == 5) { |
| | |
| | | }); |
| | | // imageLoader.displayImage(mHomeAds.get(position).getPicture(), view, options); |
| | | Glide.with(mContext).load(mHomeAds.get(position).getPicture()).placeholder(R.drawable.ic_default_cover).error(R.drawable.ic_default_cover) |
| | | .crossFade().into(view); |
| | | .into(view); |
| | | container.addView(view); |
| | | return view; |
| | | } |
| | |
| | | mChannel.setVibrationPattern(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400}); |
| | | manager.createNotificationChannel(mChannel); |
| | | oBuilder = new Notification.Builder(mContext, id); |
| | | oBuilder.setContentTitle("布丸影视大全") |
| | | oBuilder.setContentTitle("影视大全") |
| | | .setSmallIcon(R.drawable.ic_launcher) |
| | | .setLargeIcon(BitmapFactory.decodeResource(mContext.getResources(), R.drawable.ic_launcher)) |
| | | .setContentText("热门应用下载") |
| | |
| | | .build(); |
| | | } else { |
| | | builder = new NotificationCompat.Builder(mContext); |
| | | builder.setContentTitle("布丸影视大全") |
| | | builder.setContentTitle("影视大全") |
| | | .setContentText("热门应用下载") |
| | | .setSmallIcon(R.drawable.ic_launcher) |
| | | .setOngoing(true);//无效 |