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

pull/96/head
Tom Hacohen 5 years ago
parent cc73f854c2
commit fe980f937e

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

Loading…
Cancel
Save