add the nougat check back at thumbnail activity
This commit is contained in:
parent
dfefc8a684
commit
a6e62ddc1b
|
@ -7,7 +7,6 @@ import android.content.pm.PackageManager
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.provider.MediaStore
|
import android.provider.MediaStore
|
||||||
import android.support.v4.app.ActivityCompat
|
import android.support.v4.app.ActivityCompat
|
||||||
import android.support.v4.content.FileProvider
|
|
||||||
import android.support.v7.widget.GridLayoutManager
|
import android.support.v7.widget.GridLayoutManager
|
||||||
import android.view.Menu
|
import android.view.Menu
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
|
|
|
@ -5,6 +5,7 @@ import android.app.WallpaperManager
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.support.v7.widget.GridLayoutManager
|
import android.support.v7.widget.GridLayoutManager
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
@ -332,7 +333,8 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||||
} else {
|
} else {
|
||||||
val file = File(path)
|
val file = File(path)
|
||||||
val isVideo = file.isVideoFast()
|
val isVideo = file.isVideoFast()
|
||||||
if (isVideo) {
|
val isNougat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.N
|
||||||
|
if (isVideo && !isNougat) {
|
||||||
openWith(file, false)
|
openWith(file, false)
|
||||||
} else {
|
} else {
|
||||||
Intent(this, ViewPagerActivity::class.java).apply {
|
Intent(this, ViewPagerActivity::class.java).apply {
|
||||||
|
|
Loading…
Reference in New Issue