File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
pickphotoview/src/main/java/com/werb/pickphotoview Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,6 @@ class PickPhotoActivity : BasePickActivity() {
44
44
getData()
45
45
}
46
46
47
- override fun onDestroy () {
48
- super .onDestroy()
49
- EventBus .unRegister(this )
50
- PickPhotoHelper .stop()
51
- setContentView(R .layout.pick_null_layout)
52
- }
53
-
54
47
private fun getData () {
55
48
GlobalData .model?.let {
56
49
PickPhotoHelper .start(it.isShowGif, applicationContext.contentResolver)
@@ -190,6 +183,9 @@ class PickPhotoActivity : BasePickActivity() {
190
183
override fun finish () {
191
184
super .finish()
192
185
overridePendingTransition(R .anim.activity_anim_not_change, R .anim.activity_anim_top_to_bottom)
186
+ EventBus .unRegister(this )
187
+ PickPhotoHelper .stop()
188
+ setContentView(R .layout.pick_null_layout)
193
189
}
194
190
195
191
}
You can’t perform that action at this time.
0 commit comments