mirror of
https://codeberg.org/timelimit/opentimelimit-android.git
synced 2025-10-05 02:39:34 +02:00
Improve lockscreen design
This commit is contained in:
parent
f89974b561
commit
f0b912f929
3 changed files with 40 additions and 20 deletions
|
@ -104,4 +104,9 @@ class LockActivity : AppCompatActivity(), ActivityViewModelHolder {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onBackPressed() {
|
||||
// do nothing because going back would open the blocked app again
|
||||
// super.onBackPressed()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,6 +91,8 @@ class LockFragment : Fragment() {
|
|||
binding.appTitle = "???"
|
||||
}
|
||||
|
||||
binding.appIcon.setImageDrawable(logic.platformIntegration.getAppIcon(packageName))
|
||||
|
||||
blockingReason.observe(this, Observer {
|
||||
if (it == BlockingReason.None) {
|
||||
activity!!.finish()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue