From 3202764f224208467cb99c03d8a7e2eda855f355 Mon Sep 17 00:00:00 2001 From: chenjuntao Date: Fri, 25 Jan 2019 14:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E5=AE=89=E5=8D=93=205.0=20?= =?UTF-8?q?=E4=BB=A5=E4=B8=8B=E8=AE=BE=E5=A4=87=E7=9A=84=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gh/gamecenter/gamedetail/desc/GameGalleryAdapter.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/gh/gamecenter/gamedetail/desc/GameGalleryAdapter.kt b/app/src/main/java/com/gh/gamecenter/gamedetail/desc/GameGalleryAdapter.kt index 6c3afecd08..262a4a347a 100644 --- a/app/src/main/java/com/gh/gamecenter/gamedetail/desc/GameGalleryAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/gamedetail/desc/GameGalleryAdapter.kt @@ -3,6 +3,7 @@ package com.gh.gamecenter.gamedetail.desc import android.app.Activity import android.content.Context import android.databinding.DataBindingUtil +import android.os.Build import android.support.v4.app.Fragment import android.support.v7.widget.RecyclerView import android.text.TextUtils @@ -84,7 +85,9 @@ class GameGalleryAdapter(var context: Context, } override fun getItemViewType(position: Int): Int { - return if (position == 0 && !TextUtils.isEmpty(mVideo)) { + return if (position == 0 + && !TextUtils.isEmpty(mVideo) + && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { VIDEO } else { IMAGE