Improve lockscreen design

This commit is contained in:
Jonas L 2019-01-30 14:10:41 +01:00
parent f89974b561
commit f0b912f929
3 changed files with 40 additions and 20 deletions

View file

@ -104,4 +104,9 @@ class LockActivity : AppCompatActivity(), ActivityViewModelHolder {
}
}
}
override fun onBackPressed() {
// do nothing because going back would open the blocked app again
// super.onBackPressed()
}
}

View file

@ -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()