Commit e9e7fe5ebc951d156642aac8882839f7b745b3ae
1 parent
afa6870e
Android 瑞狮广告 V1.1.3
1.处理图片缓存空指针问题 2.增加原生广告App下载字段 3.WebActivity增加对302跳转App下载支持
Showing
3 changed files
with
6 additions
and
4 deletions
app/build.gradle
app/src/main/java/cn/vlion/simple/NativeActivity.java
| ... | ... | @@ -4,6 +4,7 @@ import android.content.Intent; |
| 4 | 4 | import android.os.Bundle; |
| 5 | 5 | import android.support.annotation.Nullable; |
| 6 | 6 | import android.support.v7.app.AppCompatActivity; |
| 7 | +import android.text.TextUtils; | |
| 7 | 8 | import android.util.Log; |
| 8 | 9 | import android.view.View; |
| 9 | 10 | import android.widget.Toast; |
| ... | ... | @@ -57,11 +58,12 @@ public class NativeActivity extends AppCompatActivity { |
| 57 | 58 | NativeManager.getInstance().requestCarousel(this, adId_Carousel, new NativeListener<NativeCarouselData>() { |
| 58 | 59 | @Override |
| 59 | 60 | public void onRequestSuccess(NativeCarouselData data) { |
| 61 | + String ldp = data.getNativead().getLdp(); | |
| 62 | + String download = data.getNativead().getAppDownloadurl(); | |
| 60 | 63 | Intent intent = new Intent(NativeActivity.this, VLionWebViewActivity.class); |
| 61 | - intent.putExtra("ldp", data.getNativead().getLdp()); | |
| 64 | + intent.putExtra("ldp", TextUtils.isEmpty(ldp) ? download : ldp); | |
| 62 | 65 | startActivity(intent); |
| 63 | - Log.e("DemoView", "数据获取成功 " + new Gson().toJson(data)); | |
| 64 | - Toast.makeText(NativeActivity.this, "数据获取成功 " + new Gson().toJson(data), Toast.LENGTH_SHORT).show(); | |
| 66 | + | |
| 65 | 67 | } |
| 66 | 68 | |
| 67 | 69 | @Override | ... | ... |
lib/vlion-ad-1.1.2.jar renamed to lib/vlion-ad-1.1.3.jar
No preview for this file type