Fix small element

This commit is contained in:
J-Jamet committed 2020-03-11 18:56:45 +01:00
1 parent def57c9fb2
commit 62fdb69d6b
1 file changed
+1 -1
@@ -81,7 +81,7 @@ fun Context.closeDatabase() {
stopService(Intent(this, ClipboardEntryNotificationService::class.java))
Log.i(Context::class.java.name, "Shutdown after inactivity or manual lock")
(getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager).apply {
(getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager?)?.apply {
cancelAll()
}
// Clear data