Show the title of the blocked category at the lockscreen

This commit is contained in:
Jonas Lochmann 2021-02-15 01:00:00 +01:00
parent e092a825ec
commit 9da0afe4fb
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36

View file

@ -1,5 +1,5 @@
/* /*
* TimeLimit Copyright <C> 2019 - 2020 Jonas Lochmann * TimeLimit Copyright <C> 2019 - 2021 Jonas Lochmann
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -39,6 +39,7 @@ class LockReasonFragment: Fragment() {
BlockingLevel.Activity -> "Activity" BlockingLevel.Activity -> "Activity"
BlockingLevel.App -> "App" BlockingLevel.App -> "App"
} }
binding.appCategoryTitle = if (content is LockscreenContent.Blocked.BlockedCategory) content.appCategoryTitle else null
} }
} }