update commons to 3.15.16
This commit is contained in:
parent
469e455ace
commit
c9dba5ac5b
5 changed files with 9 additions and 8 deletions
|
@ -46,7 +46,7 @@ ext {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:3.14.12'
|
implementation 'com.simplemobiletools:commons:3.15.16'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
|
||||||
implementation 'com.android.support:multidex:1.0.3'
|
implementation 'com.android.support:multidex:1.0.3'
|
||||||
implementation 'com.google.code.gson:gson:2.8.2'
|
implementation 'com.google.code.gson:gson:2.8.2'
|
||||||
|
|
|
@ -11,8 +11,8 @@ import android.view.Menu
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
||||||
import com.simplemobiletools.commons.extensions.isActivityDestroyed
|
import com.simplemobiletools.commons.extensions.isActivityDestroyed
|
||||||
import com.simplemobiletools.commons.extensions.isNougatPlus
|
|
||||||
import com.simplemobiletools.commons.extensions.toast
|
import com.simplemobiletools.commons.extensions.toast
|
||||||
|
import com.simplemobiletools.commons.helpers.isNougatPlus
|
||||||
import com.simplemobiletools.commons.models.RadioItem
|
import com.simplemobiletools.commons.models.RadioItem
|
||||||
import com.simplemobiletools.gallery.R
|
import com.simplemobiletools.gallery.R
|
||||||
import com.theartofdev.edmodo.cropper.CropImageView
|
import com.theartofdev.edmodo.cropper.CropImageView
|
||||||
|
|
|
@ -73,7 +73,6 @@ fun Activity.launchCamera() {
|
||||||
|
|
||||||
fun SimpleActivity.launchAbout() {
|
fun SimpleActivity.launchAbout() {
|
||||||
val faqItems = arrayListOf(
|
val faqItems = arrayListOf(
|
||||||
FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons),
|
|
||||||
FAQItem(R.string.faq_3_title_commons, R.string.faq_3_text_commons),
|
FAQItem(R.string.faq_3_title_commons, R.string.faq_3_text_commons),
|
||||||
FAQItem(R.string.faq_1_title, R.string.faq_1_text),
|
FAQItem(R.string.faq_1_title, R.string.faq_1_text),
|
||||||
FAQItem(R.string.faq_2_title, R.string.faq_2_text),
|
FAQItem(R.string.faq_2_title, R.string.faq_2_text),
|
||||||
|
@ -83,9 +82,10 @@ fun SimpleActivity.launchAbout() {
|
||||||
FAQItem(R.string.faq_6_title, R.string.faq_6_text),
|
FAQItem(R.string.faq_6_title, R.string.faq_6_text),
|
||||||
FAQItem(R.string.faq_7_title, R.string.faq_7_text),
|
FAQItem(R.string.faq_7_title, R.string.faq_7_text),
|
||||||
FAQItem(R.string.faq_8_title, R.string.faq_8_text),
|
FAQItem(R.string.faq_8_title, R.string.faq_8_text),
|
||||||
FAQItem(R.string.faq_9_title, R.string.faq_9_text))
|
FAQItem(R.string.faq_9_title, R.string.faq_9_text),
|
||||||
|
FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons))
|
||||||
|
|
||||||
startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_GLIDE or LICENSE_CROPPER or LICENSE_MULTISELECT or LICENSE_RTL
|
startAboutActivity(R.string.app_name, LICENSE_GLIDE or LICENSE_CROPPER or LICENSE_MULTISELECT or LICENSE_RTL
|
||||||
or LICENSE_SUBSAMPLING or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GIF_DRAWABLE or LICENSE_PHOTOVIEW, BuildConfig.VERSION_NAME, faqItems)
|
or LICENSE_SUBSAMPLING or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GIF_DRAWABLE or LICENSE_PHOTOVIEW, BuildConfig.VERSION_NAME, faqItems)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ import android.view.animation.AnimationUtils
|
||||||
import android.widget.SeekBar
|
import android.widget.SeekBar
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
|
import com.simplemobiletools.commons.helpers.isJellyBean1Plus
|
||||||
import com.simplemobiletools.gallery.BuildConfig
|
import com.simplemobiletools.gallery.BuildConfig
|
||||||
import com.simplemobiletools.gallery.R
|
import com.simplemobiletools.gallery.R
|
||||||
import com.simplemobiletools.gallery.activities.VideoActivity
|
import com.simplemobiletools.gallery.activities.VideoActivity
|
||||||
|
@ -433,7 +434,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||||
val screenWidth: Int
|
val screenWidth: Int
|
||||||
val screenHeight: Int
|
val screenHeight: Int
|
||||||
|
|
||||||
if (activity!!.isJellyBean1Plus()) {
|
if (isJellyBean1Plus()) {
|
||||||
val realMetrics = DisplayMetrics()
|
val realMetrics = DisplayMetrics()
|
||||||
display.getRealMetrics(realMetrics)
|
display.getRealMetrics(realMetrics)
|
||||||
screenWidth = realMetrics.widthPixels
|
screenWidth = realMetrics.widthPixels
|
||||||
|
|
|
@ -104,7 +104,7 @@ class MediaFetcher(val context: Context) {
|
||||||
private fun getSelectionQuery(path: String): String? {
|
private fun getSelectionQuery(path: String): String? {
|
||||||
val dataQuery = "${MediaStore.Images.Media.DATA} LIKE ?"
|
val dataQuery = "${MediaStore.Images.Media.DATA} LIKE ?"
|
||||||
return if (path.isEmpty()) {
|
return if (path.isEmpty()) {
|
||||||
if (context.isAndroidFour())
|
if (isAndroidFour())
|
||||||
return null
|
return null
|
||||||
|
|
||||||
var query = "($dataQuery)"
|
var query = "($dataQuery)"
|
||||||
|
@ -119,7 +119,7 @@ class MediaFetcher(val context: Context) {
|
||||||
|
|
||||||
private fun getSelectionArgsQuery(path: String): Array<String>? {
|
private fun getSelectionArgsQuery(path: String): Array<String>? {
|
||||||
return if (path.isEmpty()) {
|
return if (path.isEmpty()) {
|
||||||
if (context.isAndroidFour()) {
|
if (isAndroidFour()) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue