1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-02-01 17:26:46 +01:00

updated version

This commit is contained in:
Mariotaku Lee 2017-03-19 11:29:32 +08:00
parent 3c00d4e681
commit 79e07a6774
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 4 additions and 2 deletions

View File

@ -36,8 +36,8 @@ android {
applicationId "org.mariotaku.twidere" applicationId "org.mariotaku.twidere"
minSdkVersion project.properties['overrideMinSdkVersion'] ?: 14 minSdkVersion project.properties['overrideMinSdkVersion'] ?: 14
targetSdkVersion 25 targetSdkVersion 25
versionCode 301 versionCode 302
versionName '3.4.39' versionName '3.4.40'
multiDexEnabled true multiDexEnabled true
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("true")' buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("true")'

View File

@ -35,6 +35,7 @@ abstract class ProgressSaveFileTask(
) : SaveFileTask(context, destination, fileInfo) { ) : SaveFileTask(context, destination, fileInfo) {
override fun showProgress() { override fun showProgress() {
val context = this.context ?: return
(context as IBaseActivity<*>).executeAfterFragmentResumed { activity -> (context as IBaseActivity<*>).executeAfterFragmentResumed { activity ->
val fragment = ProgressDialogFragment() val fragment = ProgressDialogFragment()
fragment.isCancelable = false fragment.isCancelable = false
@ -43,6 +44,7 @@ abstract class ProgressSaveFileTask(
} }
override fun dismissProgress() { override fun dismissProgress() {
val context = this.context ?: return
(context as IBaseActivity<*>).executeAfterFragmentResumed { activity -> (context as IBaseActivity<*>).executeAfterFragmentResumed { activity ->
val fm = activity.supportFragmentManager val fm = activity.supportFragmentManager
val fragment = fm.findFragmentByTag(PROGRESS_FRAGMENT_TAG) as? DialogFragment val fragment = fm.findFragmentByTag(PROGRESS_FRAGMENT_TAG) as? DialogFragment