Fix isDestroyed is missing on API 16

This commit is contained in:
Mygod
2015-12-25 16:37:30 +08:00
parent 0cf509833a
commit c93a0348ad
@@ -466,8 +466,11 @@ class Shadowsocks
clearDialog()
}
private var _isDestroyed: Boolean = _
override def isDestroyed = if (Build.VERSION.SDK_INT >= 17) super.isDestroyed else _isDestroyed
override def onDestroy() {
super.onDestroy()
_isDestroyed = true
deattachService()
new BackupManager(this).dataChanged()
handler.removeCallbacksAndMessages(null)