chore: remove optionalality parameter

This commit is contained in:
Andries Smit 2022-06-27 08:00:02 +02:00
parent 506b6dd213
commit 72957c45e5

View file

@ -41,9 +41,9 @@ class QuickSnoozeActivity : DaggerActivity() {
finish()
}
private fun isPackageExisted(targetPackage: String?): Boolean {
private fun isPackageExisted(targetPackage: String): Boolean {
try {
packageManager.getPackageInfo(targetPackage!!, PackageManager.GET_META_DATA)
packageManager.getPackageInfo(targetPackage, PackageManager.GET_META_DATA)
} catch (e: PackageManager.NameNotFoundException) {
return false
}