mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-01 09:16:47 +01:00
updated version
This commit is contained in:
parent
3c00d4e681
commit
79e07a6774
@ -36,8 +36,8 @@ android {
|
||||
applicationId "org.mariotaku.twidere"
|
||||
minSdkVersion project.properties['overrideMinSdkVersion'] ?: 14
|
||||
targetSdkVersion 25
|
||||
versionCode 301
|
||||
versionName '3.4.39'
|
||||
versionCode 302
|
||||
versionName '3.4.40'
|
||||
multiDexEnabled true
|
||||
|
||||
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("true")'
|
||||
|
@ -35,6 +35,7 @@ abstract class ProgressSaveFileTask(
|
||||
) : SaveFileTask(context, destination, fileInfo) {
|
||||
|
||||
override fun showProgress() {
|
||||
val context = this.context ?: return
|
||||
(context as IBaseActivity<*>).executeAfterFragmentResumed { activity ->
|
||||
val fragment = ProgressDialogFragment()
|
||||
fragment.isCancelable = false
|
||||
@ -43,6 +44,7 @@ abstract class ProgressSaveFileTask(
|
||||
}
|
||||
|
||||
override fun dismissProgress() {
|
||||
val context = this.context ?: return
|
||||
(context as IBaseActivity<*>).executeAfterFragmentResumed { activity ->
|
||||
val fm = activity.supportFragmentManager
|
||||
val fragment = fm.findFragmentByTag(PROGRESS_FRAGMENT_TAG) as? DialogFragment
|
||||
|
Loading…
x
Reference in New Issue
Block a user