From 9da0afe4fb35edd2397c54ef6ee61f31975433ea Mon Sep 17 00:00:00 2001 From: Jonas Lochmann Date: Mon, 15 Feb 2021 01:00:00 +0100 Subject: [PATCH] Show the title of the blocked category at the lockscreen --- .../java/io/timelimit/android/ui/lock/LockReasonFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/timelimit/android/ui/lock/LockReasonFragment.kt b/app/src/main/java/io/timelimit/android/ui/lock/LockReasonFragment.kt index d125764..f4e4aab 100644 --- a/app/src/main/java/io/timelimit/android/ui/lock/LockReasonFragment.kt +++ b/app/src/main/java/io/timelimit/android/ui/lock/LockReasonFragment.kt @@ -1,5 +1,5 @@ /* - * TimeLimit Copyright 2019 - 2020 Jonas Lochmann + * TimeLimit Copyright 2019 - 2021 Jonas Lochmann * * 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 @@ -39,6 +39,7 @@ class LockReasonFragment: Fragment() { BlockingLevel.Activity -> "Activity" BlockingLevel.App -> "App" } + binding.appCategoryTitle = if (content is LockscreenContent.Blocked.BlockedCategory) content.appCategoryTitle else null } }