1
0
mirror of https://github.com/etesync/android synced 2024-11-22 07:58:09 +00:00

Fix potential crash when opening and stopping the app very quickly.

This commit is contained in:
Tom Hacohen 2019-04-30 14:09:31 +01:00
parent cc73f854c2
commit fe980f937e

View File

@ -294,7 +294,7 @@ class AccountActivity : BaseActivity(), Toolbar.OnMenuItemClickListener, PopupMe
} }
override fun onStopLoading() { override fun onStopLoading() {
davService!!.removeRefreshingStatusListener(this) davService?.removeRefreshingStatusListener(this)
context.unbindService(this) context.unbindService(this)
if (syncStatusListener != null) if (syncStatusListener != null)